config
This commit is contained in:
15
app_old/ui/middlewares/99_routes.php
Normal file
15
app_old/ui/middlewares/99_routes.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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);
|
Reference in New Issue
Block a user