diff --git a/src/app/core/interceptors/api.interceptor.ts b/src/app/core/interceptors/api.interceptor.ts index a62f551..18aa53f 100644 --- a/src/app/core/interceptors/api.interceptor.ts +++ b/src/app/core/interceptors/api.interceptor.ts @@ -7,7 +7,7 @@ export const apiInterceptor: HttpInterceptorFn = (req, next) => { setHeaders: { ...({ 'Content-Type': 'application/json', 'Accept': 'application/json' }), }, - url: `${environment.api_url}${req.url}` + url: `${environment.apiBaseUrl}${req.url}` }); return next(apiReq); }; diff --git a/src/environments/environment.example.ts b/src/environments/environment.example.ts index 5e16bf6..d1ab3aa 100644 --- a/src/environments/environment.example.ts +++ b/src/environments/environment.example.ts @@ -1,8 +1,14 @@ export const environment = { - production: false, - api_url: 'http://localhost:3200/api', - api_key: '', - use_api_key: true, - refresh_interval: 30000, - google_map_api_key: '' + // Used by build system to enable dev mode optimizations + production: false, + // Note: Currently used via apiInterceptor. Deprecated: duplicate of apiUrl, consider removing + apiBaseUrl: 'http://localhost:3200/api', + // Reserved for API key-based authentication (not currently used, see useApiKey) + apiKey: '', + // Reserved for toggling between JWT and API key authentication (not currently used) + useApiKey: true, + // Reserved for data polling/refresh intervals (not currently used) + refreshInterval: 30000, + // Reserved for Google Maps API integration (not currently used) + googleMapApiKey: '' };