develop (#45)
Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #45
This commit is contained in:
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
8
app/resources/routes/ventas/pies/bonos.php
Normal file
8
app/resources/routes/ventas/pies/bonos.php
Normal 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']);
|
||||
});
|
@ -2,5 +2,5 @@
|
||||
use Incoviba\Controller\Ventas\Precios;
|
||||
|
||||
$app->group('/precios', function($app) {
|
||||
$app->get('[/]', Precios::class);
|
||||
$app->get('[/{project_id}[/]]', Precios::class);
|
||||
});
|
||||
|
9
app/resources/routes/ventas/promotions.php
Normal file
9
app/resources/routes/ventas/promotions.php
Normal 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']);
|
||||
});
|
Reference in New Issue
Block a user