Files
KI/resources/routes/web.php

19 lines
336 B
PHP
Raw Normal View History

2020-04-30 08:31:19 -04:00
<?php
use ProVM\KI\Common\Controller\Web\Base;
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'web'
]);
2020-04-30 09:42:36 -04:00
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
2020-04-30 08:31:19 -04:00
}
}
$app->get('/', Base::class);