App 0.1.0
This commit is contained in:
6
app/resources/routes/api.php
Normal file
6
app/resources/routes/api.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use ProVM\Money\Common\Controller\API;
|
||||
|
||||
include_once 'currencies.php';
|
||||
|
||||
$app->get('/', API::class);
|
11
app/resources/routes/currencies.php
Normal file
11
app/resources/routes/currencies.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
use ProVM\Money\Common\Controller\Currencies;
|
||||
|
||||
$app->group('/currencies', function($app) {
|
||||
$app->post('/add[/]', [Currencies::class, 'add']);
|
||||
$app->get('[/]', Currencies::class);
|
||||
});
|
||||
|
||||
$app->group('/currency/{currency_id}', function($app) {
|
||||
$app->get('[/]', [Currencies::class, 'show']);
|
||||
});
|
Reference in New Issue
Block a user