This commit is contained in:
2021-08-16 22:13:08 -04:00
parent 740de41139
commit 49374254e4
24 changed files with 466 additions and 58 deletions

View File

@ -0,0 +1,15 @@
<?php
use Incoviba\Common\Controller\Facturas;
$app->group('/facturas', function($app) {
$app->group('/add', function($app) {
$app->post('[/]', [Facturas::class, 'add']);
});
$app->post('[/]', [Facturas::class, 'proyecto_operador']);
$app->get('[/]', Facturas::class);
});
$app->group('/factura/{id_factura}', function($app) {
$app->group('/ventas', function($app) {
$app->get('[/]', [Facturas::class, 'ventas']);
});
});

View File

@ -9,5 +9,9 @@ $app->group('/operador/{id_operador}', function($app) {
$app->group('/ventas', function($app) {
$app->get('[/]', [Operadores::class, 'ventas']);
});
$app->group('/proyectos', function($app) {
$app->post('/add[/]', [Operadores::class, 'add_proyecto']);
$app->get('[/]', [Operadores::class, 'proyectos']);
});
$app->get('[/]', [Operadores::class, 'show']);
});

View File

@ -8,5 +8,8 @@ $app->group('/proyecto/{id_proyecto}', function($app) {
$app->group('/ventas', function($app) {
$app->get('[/]', [Proyectos::class, 'ventas']);
});
$app->group('/operadores', function($app) {
$app->get('[/]', [Proyectos::class, 'operadores']);
});
$app->get('[/]', [Proyectos::class, 'show']);
});

View File

@ -0,0 +1,8 @@
<?php
use Incoviba\Common\Controller\Unidades;
$app->group('/unidad/{id_unidad}', function($app) {
$app->group('/facturas', function($app) {
$app->get('[/]', [Unidades::class, 'facturas']);
});
});