correction /api en trop
This commit is contained in:
@@ -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)}`),
|
||||||
|
|||||||
Reference in New Issue
Block a user