2025SELab2-project-Dwengo/frontend/src/config.ts
2025-03-13 20:12:09 +00:00

8 lines
285 B
TypeScript

export const apiConfig = {
baseUrl:
window.location.hostname === "localhost" && !(window.location.port === "80" || window.location.port === "")
? "http://localhost:3000/api"
: window.location.origin + "/api",
};
export const loginRoute = "/login";