Sources
This commit is contained in:
@ -3,6 +3,7 @@ use ProVM\Money\Common\Controller\API;
|
||||
|
||||
include_once 'currencies.php';
|
||||
include_once 'values.php';
|
||||
include_once 'sources.php';
|
||||
|
||||
$app->get('/', API::class);
|
||||
|
||||
|
13
app/resources/routes/sources.php
Normal file
13
app/resources/routes/sources.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
use ProVM\Money\Common\Controller\Sources;
|
||||
|
||||
$app->group('/sources', function($app) {
|
||||
$app->post('/add[/]', [Sources::class, 'add']);
|
||||
$app->get('[/]', Sources::class);
|
||||
});
|
||||
|
||||
$app->group('/source/{currency_id}/{url}', function($app) {
|
||||
$app->put('/edit[/]', [Sources::class, 'edit']);
|
||||
$app->delete('/delete[/]', [Sources::class, 'delete']);
|
||||
$app->get('[/]', [Sources::class, 'get']);
|
||||
});
|
Reference in New Issue
Block a user