Se agrega seccion de evento

This commit is contained in:
2020-04-28 23:52:56 -04:00
parent a878d6bc77
commit 2a34fa368e
97 changed files with 275 additions and 67 deletions

View File

@ -1,4 +1,18 @@
<?php
use ProVM\TotalSport\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);

View File

@ -0,0 +1,6 @@
<?php
use ProVM\TotalSport\Common\Controller\Web\Eventos;
$app->group('/evento/{evento}', function($app) {
$app->get('[/]', Eventos::class);
});