This commit is contained in:
2020-03-22 17:25:11 -03:00
parent dc3faee09e
commit 00f9a10cbf
36 changed files with 559 additions and 68 deletions

View File

@ -0,0 +1,20 @@
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Admin\Admin;
$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();
}
}
$app->get('[/]', Admin::class);
});

View File

@ -0,0 +1,7 @@
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Admin\Notificacion;
$app->group('/notificacion', function($app) {
$app->get('[/]', Notificacion::class);
$app->post('[/]', [Notificacion::class, 'do_edit']);
});