Sistema web para crear proyecto web nuevo
This commit is contained in:
18
resources/routes/web.php
Normal file
18
resources/routes/web.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
use ProVM\Projects\Common\Controller\Web\Home;
|
||||
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
'web'
|
||||
]);
|
||||
if (file_exists($folder)) {
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
|
||||
$app->get('/', Home::class);
|
Reference in New Issue
Block a user