import basicAxios, { AxiosResponse } from "axios"
const requestURL = "
https://karazina-environment.herokuapp.com/teacher"
const requestTeacherInfo = (
id: string,
fullname: string,
position: string,
department: string,
phone: string,
location: string,
teacheremail: string,
userid: null,
image: null
): Promise<AxiosResponse> => {
return basicAxios.get(requestURL, {id,fullname,position,department,phone,location,teacheremail,userid,image})
}
export { requestTeacherInfo }
вот написал