14 lines
368 B
PHP
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();
|
|
}
|
|
}
|
|
});
|