This commit is contained in:
2021-12-06 22:10:57 -03:00
parent 8ef4ab1c7d
commit 9d2504f016
35 changed files with 1374 additions and 239 deletions

View File

@ -0,0 +1,13 @@
<?php
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'tipos']);
if (file_exists($folder)) {
$app->group('/tipos', function($app) use ($folder) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir() or $file->getExtension() != 'php') {
continue;
}
include_once $file->getRealPath();
}
});
}