Varios cambios Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #25
11 lines
354 B
PHP
11 lines
354 B
PHP
<?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();
|
|
}
|
|
})->add($app->getContainer()->get(Incoviba\Middleware\Authentication::class));
|