Files
crypto/backend/api/resources/routes/api/locations.php
2021-06-28 23:15:13 -04:00

14 lines
403 B
PHP

<?php
use ProVM\Crypto\Common\Controller\Locations;
$app->group('/locations', function($app) {
$app->post('/add', [Locations::class, 'add']);
$app->get('[/]', Locations::class);
});
$app->group('/location/{location_id}', function($app) {
$app->put('/edit', [Locations::class, 'edit']);
$app->delete('/delete', [Locations::class, 'delete']);
$app->get('[/]', [Locations::class, 'show']);
});