Auth, Login, Home, Venta->Listados->Precios
This commit is contained in:
12
app/setup/middlewares/99_routes.php
Normal file
12
app/setup/middlewares/99_routes.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
function loadRoutes(&$app): void {
|
||||
$folder = $app->getContainer()->get('folders')->get('routes');
|
||||
$files = new FilesystemIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
loadRoutes($app);
|
Reference in New Issue
Block a user