correction /api en trop

This commit is contained in:
trochas
2026-01-08 18:04:33 +01:00
parent dddbd6afd3
commit cf509d1a7c

View File

@@ -37,7 +37,7 @@ export function clearAuthToken() {
export const athleteService = { export const athleteService = {
// controller is mounted at /athlete // controller is mounted at /athlete
create: (data: any) => api.post<AthleteDTO>("/api/athlete/create", data), create: (data: any) => api.post<AthleteDTO>("/athlete/create", data),
getAll: () => api.get("/athlete/all"), getAll: () => api.get("/athlete/all"),
getById: (id: number | string) => api.get(`/athlete/${id}`), getById: (id: number | string) => api.get(`/athlete/${id}`),
getByKeycloakId: (keycloakId: string) => api.get(`/athlete/keycloak/${encodeURIComponent(keycloakId)}`), getByKeycloakId: (keycloakId: string) => api.get(`/athlete/keycloak/${encodeURIComponent(keycloakId)}`),