Enhance currency and gold rates API with custom throttling and improved responses

- Implemented a custom throttle middleware to limit requests to 2 per 30 seconds, enhancing API stability.
- Updated API responses to include Turkish messages for successful updates and error handling.
- Refactored the CurrencyController to integrate the new throttling logic and improve response clarity.
- Enhanced the Scribe documentation to reflect changes in API behavior and response formats.
- Updated views to improve branding and user experience, including dynamic content adjustments.

These changes collectively improve the API's performance, usability, and branding for the Truncgil Finance application.
This commit is contained in:
Ümit Tunç
2025-01-21 18:28:39 +03:00
parent e2684ef05a
commit 30dd0c5b8d
8 changed files with 74 additions and 27 deletions
-1
View File
@@ -10,7 +10,6 @@ use App\Http\Controllers\TimeDateController;
| API Routes
|--------------------------------------------------------------------------
*/
Route::get('/run-all-fetchs', [CurrencyController::class, 'runAllFetchs']);
Route::get('/today.json', [CurrencyController::class, 'getAllRates']);