Modified API base URL in frontend

This commit is contained in:
Alexis Leboeuf
2026-01-08 18:02:19 +01:00
parent 4eed2e2954
commit b4779f6007

View File

@@ -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",
},