2025SELab2-project-Dwengo/frontend/src/config.ts

5 lines
255 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";