2023-09-12

This commit is contained in:
Juan Pablo Vial
2023-09-13 18:51:46 -03:00
parent fa15da1ee2
commit 0cd357b6cb
47 changed files with 1225 additions and 102 deletions

View File

@ -9,7 +9,10 @@ $app->group('/ventas', function($app) {
}
include_once $file->getRealPath();
}
$app->get('/add', [Ventas::class, 'add']);
$app->group('/add', function($app) {
$app->post('[/]', [Ventas::class, 'doAdd']);
$app->get('[/]', [Ventas::class, 'add']);
});
$app->get('[/]', Ventas::class);
});
$app->group('/venta/{proyecto_nombre:[A-za-zÑñ\+\ %0-9]+}/{unidad_descripcion:[0-9]+}', function($app) {
@ -22,6 +25,11 @@ $app->group('/venta/{venta_id:[0-9]+}', function($app) {
$app->group('/propiedad', function($app) {
$app->get('[/]', [Ventas::class, 'propiedad']);
});
$app->group('/pie', function($app) {
$app->group('/cuotas', function($app) {
$app->get('[/]', [Ventas::class, 'cuotas']);
});
});
$app->get('/edit[/]', [Ventas::class, 'edit']);
$app->get('[/]', [Ventas::class, 'show']);
});

View File

@ -0,0 +1,13 @@
<?php
use Incoviba\Controller\Ventas\Pies;
use Incoviba\Controller\Ventas\Cuotas;
$app->group('/pie/{pie_id}', function($app) {
$app->group('/cuotas', function($app) {
$app->group('/add', function($app) {
$app->get('[/]', [Cuotas::class, 'add']);
$app->post('[/]', [Cuotas::class, 'doAdd']);
});
$app->get('[/]', [Pies::class, 'cuotas']);
});
});