Centros de Costos

This commit is contained in:
2024-01-09 23:35:35 -03:00
parent 74b3bb42ea
commit a66b549a8c
18 changed files with 725 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<?php
$app->group('/contabilidad', function($app) {
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'contabilidad']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
});

View File

@ -0,0 +1,10 @@
<?php
$app->group('/contabilidad', function($app) {
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'contabilidad']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
});

View File

@ -0,0 +1,10 @@
<?php
use Incoviba\Controller\API\CentrosCostos;
$app->group('/centros_costos', function($app) {
$app->post('/add[/]', [CentrosCostos::class, 'add']);
});
$app->group('/centro_costo/{centro_costo_id}', function($app) {
$app->post('/edit[/]', [CentrosCostos::class, 'edit']);
$app->delete('[/]', [CentrosCostos::class, 'remove']);
});

View File

@ -0,0 +1,6 @@
<?php
use Incoviba\Controller\CentrosCostos;
$app->group('/centros_costos', function($app) {
$app->get('[/]', CentrosCostos::class);
});