Skip to content

Commit 9889b1e

Browse files
committed
update
1 parent 8b47935 commit 9889b1e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/config/api.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Central API configuration
22
// 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/";
3+
export const API_BASE = "https://club.cse.pstu.ac.bd:2125";
44

55
// FastAPI default OAuth2PasswordRequestForm token route is usually "/token".
66
// If your backend exposes a different path, change it here once.
@@ -13,6 +13,4 @@ export function buildUrl(path: string): string {
1313
const base = API_BASE.endsWith("/") ? API_BASE.slice(0, -1) : API_BASE;
1414
const p = path.startsWith("/") ? path : `/${path}`;
1515
return `${base}${p}`;
16-
}
17-
18-
16+
}

0 commit comments

Comments
 (0)