config
This commit is contained in:
8
app_old/resources/routes/api.php
Normal file
8
app_old/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
app_old/resources/routes/api/unidades.php
Normal file
6
app_old/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']);
|
||||
});
|
5
app_old/resources/routes/cli.php
Normal file
5
app_old/resources/routes/cli.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
use App\Command;
|
||||
|
||||
$app->add($app->getContainer()->get(Command\Money\Lookup::class));
|
||||
$app->add($app->getContainer()->get(Command\Money\Get::class));
|
15
app_old/resources/routes/ui/01_auth.php
Normal file
15
app_old/resources/routes/ui/01_auth.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
use App\Controller\Auth;
|
||||
|
||||
$app->group('/auth', function($app) {
|
||||
$app->group('/login', function($app) {
|
||||
$app->get('[/]', [Auth::class, 'login']);
|
||||
$app->post('[/]', [Auth::class, 'do_login']);
|
||||
});
|
||||
$app->get('/logout[/]', [Auth::class, 'logout']);
|
||||
$app->group('/pass', function($app) {
|
||||
$app->get('/check', [Auth::class, 'check_pass']);
|
||||
$app->get('[/]', [Auth::class, 'change_pass']);
|
||||
$app->post('[/]', [Auth::class, 'do_change_pass']);
|
||||
});
|
||||
});
|
4
app_old/resources/routes/ui/99_base.php
Normal file
4
app_old/resources/routes/ui/99_base.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use App\Controller\Home;
|
||||
|
||||
$app->get('[/]', Home::class);
|
Reference in New Issue
Block a user