From 4b08e5e58c03e2ad9da4f853d2dbdb1658769b0c Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Sun, 6 Jul 2025 19:59:50 +0200 Subject: [PATCH] Fix base URL formatting in `serverCall` for API requests --- internal_frontend/lib/api/serverCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_frontend/lib/api/serverCall.ts b/internal_frontend/lib/api/serverCall.ts index dcc6519..c6b188d 100644 --- a/internal_frontend/lib/api/serverCall.ts +++ b/internal_frontend/lib/api/serverCall.ts @@ -7,7 +7,7 @@ export async function serverCall( method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH", body?: unknown ): Promise { - const url = `${process.env.INTERNAL_BACKEND_URL ?? "http://localhost:8080/api"}${path}`; + const url = `${process.env.INTERNAL_BACKEND_URL ?? "http://localhost:8080"}/api${path}`; const session = await getServerSession(authOptions); const headers: Record = {