Files
oficial/app/resources/routes/ventas/pies.php
aldarien 742de657c5 develop (#45)
Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #45
2025-10-04 11:40:52 -03:00

21 lines
633 B
PHP

<?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']);
});
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'pies']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
});