mitlist/be
google-labs-jules[bot] 57b913d135 Fix: Correct API endpoint pathing for expenses to resolve 404 errors
The expenses frontend was encountering 404 errors due to mismatched API paths
between the frontend calls and backend routing.

This commit addresses the issue by:

1. Modifying backend API routing in `be/app/api/v1/api.py`:
   - Added a `/financials` prefix to the `financials.router`. Expense endpoints are now served under `/api/v1/financials/expenses`.

2. Updating frontend API configuration in `fe/src/config/api-config.ts`:
   - Prepended `/api/v1` to all paths within the `API_ENDPOINTS.FINANCIALS` object to match the new backend structure (e.g., `API_ENDPOINTS.FINANCIALS.EXPENSES` is now `/api/v1/financials/expenses`).

3. Updating frontend expense service in `fe/src/services/expenseService.ts`:
   - Replaced hardcoded relative URLs with the updated constants from `API_ENDPOINTS.FINANCIALS`.
   - Ensured `API_ENDPOINTS` is correctly imported.

These changes align the frontend API calls with the backend endpoint definitions,
resolving the 404 errors.
2025-06-03 10:04:42 +00:00
..
alembic Fix(alembic): Resolve TypeError in migration script and remove redundant migration call 2025-06-01 17:16:41 +00:00
app Fix: Correct API endpoint pathing for expenses to resolve 404 errors 2025-06-03 10:04:42 +00:00
tests feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
.dockerignore refactor: Revise .dockerignore and Dockerfile for enhanced build efficiency and organization 2025-06-01 16:14:55 +02:00
.gitignore weeee💃 2025-03-30 16:02:49 +02:00
alembic.ini weeee💃 2025-03-30 16:02:49 +02:00
Dockerfile Fix(docker): Run Alembic migrations on container startup 2025-06-01 17:10:40 +00:00
Dockerfile.prod fix: Add Alembic directory and configuration file to production Dockerfile for migration support 2025-06-01 17:16:26 +02:00
entrypoint.sh Fix(docker): Run Alembic migrations on container startup 2025-06-01 17:10:40 +00:00
pytest.ini Implement test fixtures for async database sessions and enhance test coverage for CRUD operations. Introduce mock settings for financial endpoints and improve error handling in user and settlement tests. Refactor existing tests to utilize async mocks for better reliability and clarity. 2025-05-20 01:18:31 +02:00
requirements.txt feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00