Files
raby/resources/routes/web.php

19 lines
345 B
PHP
Raw Normal View History

2020-02-27 19:09:54 -03:00
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Home;
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'web'
]);
2020-02-27 23:02:24 -03:00
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
2020-02-27 19:09:54 -03:00
}
}
$app->get('/', Home::class);