This commit is contained in:
2020-02-27 19:09:54 -03:00
parent 17b62d528e
commit 467fab3716
35 changed files with 478 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
$_ENV
]);
$filename = $_ENV . '.php';
include_once $filename;

16
resources/routes/web.php Normal file
View File

@ -0,0 +1,16 @@
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Home;
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'web'
]);
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
$app->get('/', Home::class);