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:
Eric Gullickson
2025-11-04 19:10:30 -06:00
parent c6f43fe86b
commit 9a41a3c417

View File

@@ -12,7 +12,7 @@ import {
ApiError ApiError
} from '../types/stations.types'; } from '../types/stations.types';
const API_BASE = '/api/stations'; const API_BASE = '/stations';
class StationsApiClient { class StationsApiClient {
/** /**