Commit Graph

4 Commits

Author SHA1 Message Date
Ümit Tunç 2dee2f56b9 Refactor API routes for currency and gold rates
- Commented out the '/run-all-fetchs' endpoint to prevent its usage while maintaining the '/today.json' endpoint for fetching all rates.
- Rearranged the '/gold-rates' endpoint to ensure it is defined after the '/currency-rates' endpoints for better organization.
- Ensured all existing endpoints for currency and gold rates remain functional, enhancing the API's structure and maintainability.

These changes improve the clarity and organization of the API routes, facilitating better management of financial data.
2025-01-17 23:33:02 +03:00
Ümit Tunç 2aac301b29 Update API routes for currency and gold rates
- Replaced the '/today.json' endpoint with '/run-all-fetchs' to trigger fetching jobs for currency and gold rates.
- Updated the '/today.json' endpoint to now call 'getAllRates' for improved data retrieval.
- Added new endpoints for '/gold-rates' and '/gold-rates/{goldName}' to enhance access to gold rate data.
- Maintained existing '/currency-rates' and '/currency-rates/{currencyName}' endpoints for current currency rates.

These changes improve the API's functionality and organization, facilitating better management of financial data.
2025-01-17 23:28:37 +03:00
Ümit Tunç 9cb59d033a Update API routes to include new endpoints for today's currency rates and specific currency rates by name 2025-01-17 21:45:27 +03:00
Ümit Tunç f6ef9fafdc first commit 2025-01-17 21:38:08 +03:00