diff --git a/app/resources/routes/currencies.php b/app/resources/routes/currencies.php index 63d4cec..8ca0172 100644 --- a/app/resources/routes/currencies.php +++ b/app/resources/routes/currencies.php @@ -21,6 +21,13 @@ $app->group('/currency/{currency_id}', function($app) { return $response; }); }); + $app->group('/sources', function($app) { + $app->post('/add[/]', [Currencies::class, 'addSources']); + $app->get('[/]', [Currencies::class, 'getSources']); + $app->options('[/]', function (Request $request, Response $response): Response { + return $response; + }); + }); $app->get('[/]', [Currencies::class, 'get']); $app->options('[/]', function (Request $request, Response $response): Response { return $response;