Expand currency endpoint.

This commit is contained in:
James Cole
2018-12-09 06:51:53 +01:00
parent 2a68ce6c90
commit 82e4055fa6
2 changed files with 21 additions and 7 deletions

View File

@@ -92,6 +92,7 @@ class CurrencyExchangeRateController extends Controller
$this->parameters->set('from', $fromCurrency->code);
$this->parameters->set('to', $toCurrency->code);
$this->parameters->set('date', $dateObj->format('Y-m-d'));
$this->parameters->set('amount', $request->get('amount'));
$rate = $this->repository->getExchangeRate($fromCurrency, $toCurrency, $dateObj);
if (null === $rate) {