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__, __DIR__,
'web' 'web'
]); ]);
$files = new DirectoryIterator($folder); if (file_exists($folder)) {
foreach ($files as $file) { $files = new DirectoryIterator($folder);
if ($file->isDir()) { foreach ($files as $file) {
continue; if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
} }
include_once $file->getRealPath();
} }
$app->get('/', Base::class); $app->get('/', Base::class);