Basic resources
This commit is contained in:
16
resources/routes/web.php
Normal file
16
resources/routes/web.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
use ProVM\Common\Helper\Merger;
|
||||
use Incoviba\Control\Common\Controller\Home;
|
||||
|
||||
$folder = (new Merger(DIRECTORY_SEPARATOR))->add(__DIR__)->add($__environment)->merge();
|
||||
if (file_exists($folder)) {
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir() or $file->getExtension() != 'php') {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
|
||||
$app->get('/', Home::class);
|
Reference in New Issue
Block a user