From 7258f059ce18c4469513c0e338c975196b5ff058 Mon Sep 17 00:00:00 2001 From: echo Date: Sat, 28 Feb 2026 23:37:12 +0100 Subject: [PATCH] fix: remove duplicate /api/v1 in article detail route loader --- frontend/src/routes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes.tsx b/frontend/src/routes.tsx index a60434d..3c69cfc 100644 --- a/frontend/src/routes.tsx +++ b/frontend/src/routes.tsx @@ -196,7 +196,7 @@ const articleDetailRoute = createRoute({ return }, loader: async ({ params }) => { - const response = await fetch(`${import.meta.env.VITE_API_URL || 'http://localhost:3000'}/api/v1/articles/${params.id}`) + const response = await fetch(`${import.meta.env.VITE_API_URL || 'http://localhost:3000/api/v1'}/articles/${params.id}`) if (!response.ok) { return { article: null } }