Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #45
This commit is contained in:
2025-10-04 11:40:52 -03:00
parent 6ddc48ec60
commit 742de657c5
815 changed files with 62089 additions and 3287 deletions

View File

@ -1,7 +1,9 @@
<?php
use Incoviba\Controller\Ventas\Cierres;
//use Incoviba\Controller\Ventas\Cierres;
use Incoviba\Controller\Ventas\Reservations as Cierres;
$app->group('/cierres', function($app) {
$app->get('/project/{project_id}', Cierres::class);
$app->get('[/]', Cierres::class);
});
$app->group('/cierre/{cierre_id}', function($app) {

View File

@ -10,4 +10,11 @@ $app->group('/pie/{pie_id}', function($app) {
});
$app->get('[/]', [Pies::class, 'cuotas']);
});
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'pies']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
});

View File

@ -0,0 +1,8 @@
<?php
use Incoviba\Controller\Ventas\Bonos;
$app->group('/bono_pie', function($app) {
$app->get('/edit[/]', [Bonos::class, 'edit']);
$app->get('/add[/]', [Bonos::class, 'add']);
$app->get('[/]', [Bonos::class, 'edit']);
});

View File

@ -2,5 +2,5 @@
use Incoviba\Controller\Ventas\Precios;
$app->group('/precios', function($app) {
$app->get('[/]', Precios::class);
$app->get('[/{project_id}[/]]', Precios::class);
});

View File

@ -0,0 +1,9 @@
<?php
use Incoviba\Controller\Ventas\Promotions;
$app->group('/promotions', function($app) {
$app->get('[/]', Promotions::class);
});
$app->group('/promotion/{promotion_id}', function($app) {
$app->get('[/]', [Promotions::class, 'show']);
});