Files
oficial/app/resources/routes/01_api.php
2023-11-25 00:55:31 -03:00

14 lines
428 B
PHP

<?php
$app->group('/api', function($app) {
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'api']);
if (file_exists($folder)) {
$files = new FilesystemIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
})->add($app->getContainer()->get(Incoviba\Middleware\API::class));