Zona admin

This commit is contained in:
2020-05-26 23:04:49 -04:00
parent d0aba43371
commit 31f308f5c7
26 changed files with 1291 additions and 1 deletions

View File

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