API
This commit is contained in:
13
api/resources/routes/02_operadores.php
Normal file
13
api/resources/routes/02_operadores.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
use Incoviba\Common\Controller\Operadores;
|
||||
|
||||
$app->group('/operadores', function($app) {
|
||||
$app->post('/add[/]', [Operadores::class, 'add']);
|
||||
$app->get('[/]', Operadores::class);
|
||||
});
|
||||
$app->group('/operador/{id_operador}', function($app) {
|
||||
$app->group('/ventas', function($app) {
|
||||
$app->get('[/]', [Operadores::class, 'ventas']);
|
||||
});
|
||||
$app->get('[/]', [Operadores::class, 'show']);
|
||||
});
|
12
api/resources/routes/02_proyectos.php
Normal file
12
api/resources/routes/02_proyectos.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
use Incoviba\Common\Controller\Proyectos;
|
||||
|
||||
$app->group('/proyectos', function($app) {
|
||||
$app->get('[/]', Proyectos::class);
|
||||
});
|
||||
$app->group('/proyecto/{id_proyecto}', function($app) {
|
||||
$app->group('/ventas', function($app) {
|
||||
$app->get('[/]', [Proyectos::class, 'ventas']);
|
||||
});
|
||||
$app->get('[/]', [Proyectos::class, 'show']);
|
||||
});
|
12
api/resources/routes/02_ventas.php
Normal file
12
api/resources/routes/02_ventas.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
use Incoviba\Common\Controller\Ventas;
|
||||
|
||||
$app->group('/ventas', function($app) {
|
||||
$app->get('[/]', Ventas::class);
|
||||
});
|
||||
$app->group('/venta/{id_venta}', function($app) {
|
||||
$app->group('/operador', function($app) {
|
||||
$app->get('[/]', [Ventas::class, 'operador']);
|
||||
});
|
||||
$app->get('[/]', [Ventas::class, 'show']);
|
||||
});
|
4
api/resources/routes/99_base.php
Normal file
4
api/resources/routes/99_base.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use Incoviba\Common\Controller\Base;
|
||||
|
||||
$app->get('[/]', Base::class);
|
Reference in New Issue
Block a user