Fix API endpoint routing errors and Traefik configuration
- Fix: Remove double /api prefix in stations API calls - stations.api.ts was using '/api/stations' but apiClient already prepends '/api' - Changed API_BASE from '/api/stations' to '/stations' - This resolves 404 errors on /api/api/stations/saved and similar endpoints - Fix: Remove invalid access-log middleware from Traefik config - The accessLog field is only valid in traefik.yml main config, not as a middleware - Removed the invalid access-log middleware definition - This resolves Traefik configuration errors during startup These changes resolve the console errors: - GET https://motovaultpro.com/api/vehicles 404 - GET https://motovaultpro.com/api/api/stations/saved 404 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
ApiError
|
||||
} from '../types/stations.types';
|
||||
|
||||
const API_BASE = '/api/stations';
|
||||
const API_BASE = '/stations';
|
||||
|
||||
class StationsApiClient {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user