2024-07-26 23:15:48 -04:00
|
|
|
<?php
|
|
|
|
$app->group('/admin', function($app) {
|
|
|
|
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'admin']));
|
|
|
|
foreach ($files as $file) {
|
|
|
|
if ($file->isDir()) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
include_once $file->getRealPath();
|
|
|
|
}
|
2025-07-22 13:18:00 +00:00
|
|
|
})->add($app->getContainer()->get(Incoviba\Middleware\Authentication::class));
|