API 1.0.0

This commit is contained in:
2021-03-16 00:46:54 -03:00
parent cd6a949e23
commit 7c7e366473
5 changed files with 209 additions and 33 deletions

View File

@ -7,5 +7,11 @@ $app->group('/currencies', function($app) {
});
$app->group('/currency/{currency_id}', function($app) {
$app->get('[/]', [Currencies::class, 'show']);
$app->put('/edit[/]', [Currencies::class, 'edit']);
$app->delete('/delete[/]', [Currencies::class, 'delete']);
$app->group('/values', function($app) {
$app->post('/add[/]', [Currencies::class, 'addValues']);
$app->get('[/]', [Currencies::class, 'getValues']);
});
$app->get('[/]', [Currencies::class, 'get']);
});