FIX: Missinge web routes
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user