json( json_decode(Storage::get('merged/rates.json'), true) ); } return response()->json(['error' => 'Veri bulunamadı'], 404); } public function getCurrencyRateByName($currencyName) { // JSON dosyasından oku if (Storage::exists('currency/today.json')) { $data = json_decode(Storage::get('currency/today.json'), true); if (isset($data[$currencyName])) { return response()->json([$currencyName => $data[$currencyName]]); } return response()->json(['error' => 'Para birimi bulunamadı'], 404); } return response()->json(['error' => 'Veri bulunamadı'], 404); } }