17 lines
377 B
PHP
17 lines
377 B
PHP
<?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();
|
|
}
|
|
});
|
|
}
|