Ventas->Listado->Ventas
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Ventas;
|
||||
|
||||
$app->group('/ventas', function($app) {
|
||||
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']));
|
||||
foreach ($files as $file) {
|
||||
@ -7,4 +9,5 @@ $app->group('/ventas', function($app) {
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
$app->get('[/]', Ventas::class);
|
||||
});
|
||||
|
@ -1,4 +1,6 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Ventas;
|
||||
|
||||
$app->group('/ventas', function($app) {
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']);
|
||||
if (file_exists($folder)) {
|
||||
@ -10,4 +12,5 @@ $app->group('/ventas', function($app) {
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
$app->post('[/]', [Ventas::class, 'proyecto']);
|
||||
});
|
||||
|
@ -4,3 +4,8 @@ use Incoviba\Controller\Ventas\Precios;
|
||||
$app->group('/precios', function($app) {
|
||||
$app->post('[/]', [Precios::class, 'proyecto']);
|
||||
});
|
||||
$app->group('/precio', function($app) {
|
||||
$app->group('/unidad/{unidad_id}', function($app) {
|
||||
$app->get('[/]', [Precios::class, 'unidad']);
|
||||
});
|
||||
});
|
||||
|
@ -4,3 +4,6 @@ use Incoviba\Controller\Ventas\Cierres;
|
||||
$app->group('/cierres', function($app) {
|
||||
$app->get('[/]', Cierres::class);
|
||||
});
|
||||
$app->group('/cierre/{cierre_id}', function($app) {
|
||||
$app->get('[/]', [Cierres::class, 'show']);
|
||||
});
|
||||
|
Reference in New Issue
Block a user