14 lines
403 B
PHP
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']);
|
|
});
|