Rutas Reservations
This commit is contained in:
12
app/resources/routes/api/ventas/reservations.php
Normal file
12
app/resources/routes/api/ventas/reservations.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
use Incoviba\Controller\API\Ventas\Reservations;
|
||||||
|
|
||||||
|
$app->group('/reservations', function($app) {
|
||||||
|
$app->post('/add[/]', [Reservations::class, 'add']);
|
||||||
|
$app->get('[/]', Reservations::class);
|
||||||
|
});
|
||||||
|
$app->group('/reservation/{reservation_id}', function($app) {
|
||||||
|
$app->post('/edit[/]', [Reservations::class, 'edit']);
|
||||||
|
$app->delete('[/]', [Reservations::class, 'delete']);
|
||||||
|
$app->get('[/]', [Reservations::class, 'get']);
|
||||||
|
});
|
@ -7,7 +7,7 @@ use Incoviba\Controller\API\withJson;
|
|||||||
use Incoviba\Exception\ServiceAction;
|
use Incoviba\Exception\ServiceAction;
|
||||||
use Incoviba\Service;
|
use Incoviba\Service;
|
||||||
|
|
||||||
class Reservation
|
class Reservations
|
||||||
{
|
{
|
||||||
use withJson;
|
use withJson;
|
||||||
|
|
Reference in New Issue
Block a user