Fix supervisor endpoints in frontend

This commit is contained in:
adam-skowronek 2022-06-13 20:07:10 +02:00
parent fcc894aba9
commit 3a85b52bad

View File

@ -13,7 +13,7 @@ export interface Leader {
last_name: string last_name: string
email: string email: string
limit_group: number limit_group: number
count_group: number count_groups: number
mode: number mode: number
} }
@ -32,10 +32,12 @@ export const getLeaders = (
) )
export const createLeader = (payload: Leader) => export const createLeader = (payload: Leader) =>
axiosInstance.post('http://127.0.0.1:5000/api/coordinator/project_supervisor/', payload) axiosInstance.post(
'http://127.0.0.1:5000/api/coordinator/project_supervisor/',
payload,
export const deleteLeader = (payload: Number) => )
axiosInstance.delete(
'http://127.0.0.1:5000/api/coordinator/project_supervisor/'+payload.toString()+'/', export const deleteLeader = (id: number) =>
axiosInstance.delete(
`http://127.0.0.1:5000/api/coordinator/project_supervisor/${id}/`,
) )