UI
This commit is contained in:
4
ui/resources/routes/config.php
Normal file
4
ui/resources/routes/config.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Config;
|
||||
|
||||
$app->get('/config', Config::class);
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Home;
|
||||
|
||||
$app->get('/info[/]', [Home::class, 'info']);
|
||||
$app->get('[/]', Home::class);
|
||||
|
13
ui/resources/routes/tipos.php
Normal file
13
ui/resources/routes/tipos.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'tipos']);
|
||||
if (file_exists($folder)) {
|
||||
$app->group('/tipos', function($app) use ($folder) {
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir() or $file->getExtension() != 'php') {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
});
|
||||
}
|
4
ui/resources/routes/tipos/tipos_categorias.php
Normal file
4
ui/resources/routes/tipos/tipos_categorias.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\TiposCategorias;
|
||||
|
||||
$app->get('/categorias', TiposCategorias::class);
|
4
ui/resources/routes/tipos/tipos_cuentas.php
Normal file
4
ui/resources/routes/tipos/tipos_cuentas.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\TiposCuentas;
|
||||
|
||||
$app->get('/cuentas', TiposCuentas::class);
|
Reference in New Issue
Block a user