From b4779f6007e3f0c177742362a4f8d68aa5a81b59 Mon Sep 17 00:00:00 2001 From: Alexis Leboeuf Date: Thu, 8 Jan 2026 18:02:19 +0100 Subject: [PATCH 1/2] Modified API base URL in frontend --- front_end/src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", }, From 787eafbfae65a2b9303a593f44fc26285641a845 Mon Sep 17 00:00:00 2001 From: Alexis Leboeuf Date: Thu, 8 Jan 2026 18:02:50 +0100 Subject: [PATCH 2/2] Removed unused comment --- front_end/src/api.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/front_end/src/api.ts b/front_end/src/api.ts index 7bb2742..e1e9a84 100644 --- a/front_end/src/api.ts +++ b/front_end/src/api.ts @@ -6,7 +6,6 @@ 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/api", headers: { "Content-Type": "application/json",