df5a21efa7
- 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.
21 lines
786 B
PHP
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']);
|