Files
finance/routes/api.php
T
Ümit Tunç df5a21efa7 Uncomment run-all-fetchs route in API for currency updates
- Restored the route for the 'run-all-fetchs' method in the CurrencyController, enabling the endpoint for fetching all currency and gold rates.
- This change enhances the API functionality by making the route accessible for clients, improving the overall user experience in managing financial data.
2025-01-20 22:11:51 +03:00

21 lines
786 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CurrencyController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
*/
Route::get('/run-all-fetchs', [CurrencyController::class, 'runAllFetchs']);
Route::get('/today.json', [CurrencyController::class, 'getAllRates']);
Route::get('/currency-rates', [CurrencyController::class, 'getCurrentRates']);
Route::get('/currency-rates/{currencyName}', [CurrencyController::class, 'getCurrencyRateByName']);
Route::get('/gold-rates', [CurrencyController::class, 'getGoldRates']);
Route::get('/gold-rates/{goldName}', [CurrencyController::class, 'getGoldRateByName']);