This commit is contained in:
2021-12-06 22:10:57 -03:00
parent 8ef4ab1c7d
commit 9d2504f016
35 changed files with 1374 additions and 239 deletions

View File

@ -0,0 +1,4 @@
<?php
use Contabilidad\Common\Controller\Config;
$app->get('/config', Config::class);

View File

@ -1,4 +1,5 @@
<?php
use Contabilidad\Common\Controller\Home;
$app->get('/info[/]', [Home::class, 'info']);
$app->get('[/]', Home::class);

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

View File

@ -0,0 +1,4 @@
<?php
use Contabilidad\Common\Controller\TiposCategorias;
$app->get('/categorias', TiposCategorias::class);

View File

@ -0,0 +1,4 @@
<?php
use Contabilidad\Common\Controller\TiposCuentas;
$app->get('/cuentas', TiposCuentas::class);