Backend coins and update

This commit is contained in:
2021-07-14 10:08:48 -04:00
parent c930ffc55e
commit 8e1e644904
7 changed files with 292 additions and 41 deletions

View File

@ -9,5 +9,11 @@ $app->group('/coins', function($app) {
$app->group('/coin/{coin_id}', function($app) {
$app->put('/edit', [Coins::class, 'edit']);
$app->delete('/delete', [Coins::class, 'delete']);
$app->group('/values', function($app) {
$app->get('/month', [Coins::class, 'valuesMonth']);
$app->get('/months', [Coins::class, 'valuesSixMonths']);
$app->get('/year', [Coins::class, 'valuesYear']);
$app->get('[/]', [Coins::class, 'values']);
});
$app->get('[/]', [Coins::class, 'show']);
});