diff --git a/front_end/src/api.ts b/front_end/src/api.ts index e1e9a84..db8c7e7 100644 --- a/front_end/src/api.ts +++ b/front_end/src/api.ts @@ -37,7 +37,7 @@ export function clearAuthToken() { export const athleteService = { // controller is mounted at /athlete - create: (data: any) => api.post("/api/athlete/create", data), + create: (data: any) => api.post("/athlete/create", data), getAll: () => api.get("/athlete/all"), getById: (id: number | string) => api.get(`/athlete/${id}`), getByKeycloakId: (keycloakId: string) => api.get(`/athlete/keycloak/${encodeURIComponent(keycloakId)}`),