Files
oficial/app_old/ui/middlewares/99_routes.php
Juan Pablo Vial be33305cf1 config
2023-07-24 20:41:38 -04:00

16 lines
373 B
PHP

<?php
function buildRoutes(&$app) {
$folder = implode(DIRECTORY_SEPARATOR, [
$app->getContainer()->get('folders')->get('routes'),
'ui'
]);
$files = new FilesystemIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
buildRoutes($app);