API
This commit is contained in:
15
api/resources/routes/01_facturas.php
Normal file
15
api/resources/routes/01_facturas.php
Normal 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']);
|
||||
});
|
||||
});
|
@ -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']);
|
||||
});
|
@ -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']);
|
||||
});
|
8
api/resources/routes/01_unidades.php
Normal file
8
api/resources/routes/01_unidades.php
Normal 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']);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user