FIX: Missinge web routes

This commit is contained in:
2020-04-30 09:42:36 -04:00
parent 68fb456763
commit fbe1e4f7e5

View File

@ -5,12 +5,14 @@ $folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'web'
]);
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
include_once $file->getRealPath();
}
$app->get('/', Base::class);