We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b47935 commit 9889b1eCopy full SHA for 9889b1e
1 file changed
src/config/api.ts
@@ -1,6 +1,6 @@
1
// Central API configuration
2
// Change only API_BASE to point to your backend. Keep it without trailing slash.
3
-export const API_BASE = "https://club.cse.pstu.ac.bd:2125/";
+export const API_BASE = "https://club.cse.pstu.ac.bd:2125";
4
5
// FastAPI default OAuth2PasswordRequestForm token route is usually "/token".
6
// If your backend exposes a different path, change it here once.
@@ -13,6 +13,4 @@ export function buildUrl(path: string): string {
13
const base = API_BASE.endsWith("/") ? API_BASE.slice(0, -1) : API_BASE;
14
const p = path.startsWith("/") ? path : `/${path}`;
15
return `${base}${p}`;
16
-}
17
-
18
+}
0 commit comments