Mostrar alertas en inicio
This commit is contained in:
@ -9,10 +9,7 @@ $app->group('/ventas', function($app) {
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
$app->group('/add', function($app) {
|
||||
$app->post('[/]', [Ventas::class, 'doAdd']);
|
||||
$app->get('[/]', [Ventas::class, 'add']);
|
||||
});
|
||||
$app->get('/add[/]', [Ventas::class, 'add']);
|
||||
$app->get('[/]', Ventas::class);
|
||||
});
|
||||
$app->group('/venta/{proyecto_nombre:[A-za-zÑñ\+\ %0-9]+}/{unidad_descripcion:[0-9]+}', function($app) {
|
||||
|
@ -2,10 +2,10 @@
|
||||
use Incoviba\Controller\API\Proyectos;
|
||||
|
||||
$app->group('/proyectos', function($app) {
|
||||
$app->get('/escriturando[/]', [Proyectos::class, 'escriturando']);
|
||||
$app->get('[/]', [Proyectos::class, 'list']);
|
||||
});
|
||||
$app->group('/proyecto/{proyecto_id}', function($app) {
|
||||
$app->get('/unidades[/]', [Proyectos::class, 'unidades']);
|
||||
$app->get('/estados[/]', [Proyectos\EstadosProyectos::class, 'byProyecto']);
|
||||
$app->get('/estado[/]', [Proyectos\EstadosProyectos::class, 'currentByProyecto']);
|
||||
$app->get('/inicio[/]', [Proyectos\EstadosProyectos::class, 'firstByProyecto']);
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Ventas;
|
||||
use Incoviba\Controller\API\Ventas;
|
||||
|
||||
$app->group('/ventas', function($app) {
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']);
|
||||
@ -12,6 +12,13 @@ $app->group('/ventas', function($app) {
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
$app->post('/add[/]', [Ventas::class, 'add']);
|
||||
$app->group('/estados', function($app) {
|
||||
$app->post('/firmar[/]', [Ventas::class, 'porFirmar']);
|
||||
});
|
||||
$app->group('/escrituras', function($app) {
|
||||
$app->post('/estados[/]', [Ventas::class, 'escrituras']);
|
||||
});
|
||||
$app->post('[/]', [Ventas::class, 'proyecto']);
|
||||
});
|
||||
$app->group('/venta/{venta_id}', function($app) {
|
||||
|
6
app/resources/routes/api/ventas/unidades.php
Normal file
6
app/resources/routes/api/ventas/unidades.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Incoviba\Controller\API\Ventas\Unidades;
|
||||
|
||||
$app->group('/unidades', function($app) {
|
||||
$app->post('/disponibles', [Unidades::class, 'disponibles']);
|
||||
});
|
Reference in New Issue
Block a user