diff --git a/front_end/src/api.ts b/front_end/src/api.ts index 402e3b7..7bb2742 100644 --- a/front_end/src/api.ts +++ b/front_end/src/api.ts @@ -7,7 +7,7 @@ import { AdminDTO, AthleteDTO, CoachDTO } from "./classesDTO"; const api = axios.create({ // backend listens on 8081 and controllers are mounted at root (no /api prefix) - baseURL: "http://localhost:8081", + baseURL: "http://localhost:8081/api", headers: { "Content-Type": "application/json", },