Expand page for currency exchange rates.

This commit is contained in:
James Cole
2024-12-21 21:31:28 +01:00
parent 1daffedde0
commit 117a376fc3
11 changed files with 108 additions and 3 deletions

View File

@@ -24,6 +24,9 @@ declare(strict_types=1);
namespace FireflyIII\Http\Controllers\ExchangeRates;
use FireflyIII\Http\Controllers\Controller;
use FireflyIII\Models\TransactionCurrency;
use Illuminate\View\Factory;
use Illuminate\View\View;
class IndexController extends Controller
{
@@ -44,9 +47,14 @@ class IndexController extends Controller
);
}
public function index()
public function index(): View
{
return view('exchange-rates.index');
}
public function rates(TransactionCurrency $from, TransactionCurrency $to): View
{
return view('exchange-rates.rates', compact('from', 'to'));
}
}