feat: enhance configuration management, add update checks, and improve UI components

This commit is contained in:
2026-03-02 12:13:01 +01:00
parent ed25c5299d
commit e8e76cdf8b
12 changed files with 239 additions and 46 deletions

View File

@@ -14,6 +14,14 @@ const api = axios.create({
timeout: 10000, // 10 seconds timeout
});
// Export function to update base URL
export const setApiBaseUrl = (url: string) => {
if (url) {
api.defaults.baseURL = url;
console.log(`[API] Base URL updated to: ${url}`);
}
};
// Interceptor: Adds the token to EVERY request if it exists
api.interceptors.request.use(
async (config) => {