Files
oficial/app/resources/routes/api/admin.php
Juan Pablo Vial 84861b5e57 Cli user
2024-07-26 23:15:48 -04:00

14 lines
368 B
PHP

<?php
$app->group('/admin', function($app) {
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'admin']);
if (file_exists($folder)) {
$files = new FilesystemIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
});