Slim API
This commit is contained in:
8
resources/routes/api.php
Normal file
8
resources/routes/api.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$files = new DirectoryIterator(__DIR__ . '/api');
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
6
resources/routes/api/unidades.php
Normal file
6
resources/routes/api/unidades.php
Normal 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']);
|
||||
});
|
Reference in New Issue
Block a user