develop (#45)
Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #45
This commit is contained in:
21
app/resources/routes/api/ventas/reservations.php
Normal file
21
app/resources/routes/api/ventas/reservations.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
use Incoviba\Controller\API\Ventas\Reservations;
|
||||
|
||||
$app->group('/reservations', function($app) {
|
||||
$app->post('/add[/]', [Reservations::class, 'add']);
|
||||
$app->group('/project/{project_id}', function($app) {
|
||||
$app->get('/active[/]', [Reservations::class, 'active']);
|
||||
$app->get('/pending[/]', [Reservations::class, 'pending']);
|
||||
$app->get('/rejected[/]', [Reservations::class, 'rejected']);
|
||||
});
|
||||
$app->get('[/]', Reservations::class);
|
||||
});
|
||||
$app->post('/reservation/add[/]', [Reservations::class, 'addOne']);
|
||||
$app->group('/reservation/{reservation_id}', function($app) {
|
||||
$app->get('/approve[/]', [Reservations::class, 'approve']);
|
||||
$app->get('/reject[/]', [Reservations::class, 'reject']);
|
||||
$app->post('/edit[/]', [Reservations::class, 'edit']);
|
||||
$app->delete('/remove[/]', [Reservations::class, 'remove']);
|
||||
$app->delete('[/]', [Reservations::class, 'delete']);
|
||||
$app->get('[/]', [Reservations::class, 'get']);
|
||||
});
|
Reference in New Issue
Block a user