Implemented repository mapper, and venta show

This commit is contained in:
Juan Pablo Vial
2023-08-08 23:53:49 -04:00
parent ef30ae67d2
commit 59825259b6
111 changed files with 2766 additions and 612 deletions

View File

@ -0,0 +1,11 @@
<?php
use Incoviba\Controller\Direcciones;
$app->group('/direcciones', function($app) {
$app->group('/region/{region_id:[0-9]+}', function($app) {
$app->get('/comunas[/]', [Direcciones::class, 'comunas']);
});
$app->group('/comunas', function($app) {
$app->post('/find[/]', [Direcciones::class, 'findComunas']);
});
});

View File

@ -14,3 +14,7 @@ $app->group('/ventas', function($app) {
}
$app->post('[/]', [Ventas::class, 'proyecto']);
});
$app->group('/venta/{venta_id}', function($app) {
$app->get('/comentarios', [Ventas::class, 'comentarios']);
$app->get('[/]', [Ventas::class, 'get']);
});

View File

@ -0,0 +1,7 @@
<?php
use Incoviba\Controller\Ventas\Pagos;
$app->group('/pago/{pago_id:[0-9]+}', function($app) {
$app->put('/depositar[/]', [Pagos::class, 'depositar']);
$app->put('/abonar[/]', [Pagos::class, 'abonar']);
});