Rutas Reservations

This commit is contained in:
Juan Pablo Vial
2025-03-03 16:53:36 -03:00
parent 095a65a643
commit 5f69069aa0
2 changed files with 13 additions and 1 deletions

View 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']);
});

View File

@ -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;