This commit is contained in:
2021-03-25 23:33:37 -03:00
parent cd1ee7d446
commit 8fe357cc95
16 changed files with 216 additions and 58 deletions

8
resources/routes/api.php Normal file
View File

@ -0,0 +1,8 @@
<?php
$files = new DirectoryIterator(__DIR__ . '/api');
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}

View File

@ -0,0 +1,6 @@
<?php
use App\Controller\API\Unidades;
$app->group('/unidades', function($app) {
$app->get('/no_reservadas/{id_proyecto}/{id_tipo}', [Unidades::class, 'no_reservadas']);
});