This commit is contained in:
2021-03-20 16:51:17 -03:00
parent 845077d2a0
commit 53a519ffbd
7 changed files with 175 additions and 8 deletions

View File

@ -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);

View 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']);
});