From 9cb59d033a9e5a591c9e6e721f7e02bfaa876227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Fri, 17 Jan 2025 21:45:27 +0300 Subject: [PATCH] Update API routes to include new endpoints for today's currency rates and specific currency rates by name --- routes/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 79b46f1..b6e3cd1 100644 --- a/routes/api.php +++ b/routes/api.php @@ -10,4 +10,6 @@ use App\Http\Controllers\CurrencyController; |-------------------------------------------------------------------------- */ -Route::get('/currency-rates', [CurrencyController::class, 'getCurrentRates']); \ No newline at end of file +Route::get('/today.json', [CurrencyController::class, 'getCurrentRates']); +Route::get('/currency-rates', [CurrencyController::class, 'getCurrentRates']); +Route::get('/currency-rates/{currencyName}', [CurrencyController::class, 'getCurrencyRateByName']); \ No newline at end of file