2021-08-16 22:13:08 -04:00
|
|
|
<?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) {
|
2021-08-18 19:03:58 -04:00
|
|
|
$app->post('/add[/]', [Facturas::class, 'add_venta']);
|
2021-08-16 22:13:08 -04:00
|
|
|
$app->get('[/]', [Facturas::class, 'ventas']);
|
|
|
|
});
|
|
|
|
});
|