Authenticacion
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
$_ENV
|
||||
$__environment
|
||||
]);
|
||||
$filename = $_ENV . '.php';
|
||||
$filename = $__environment . '.php';
|
||||
include_once $filename;
|
||||
|
@ -17,4 +17,4 @@ $app->group('/admin', function($app) {
|
||||
}
|
||||
|
||||
$app->get('[/]', Admin::class);
|
||||
});
|
||||
})->add($app->getContainer()->get(ProVM\NotariaRaby\Common\Middleware\Auth::class));
|
||||
|
7
resources/routes/web/admin/clave.php
Normal file
7
resources/routes/web/admin/clave.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
use ProVM\NotariaRaby\Common\Controller\Web\Admin\Clave;
|
||||
|
||||
$app->group('/clave', function($app) {
|
||||
$app->get('[/]', Clave::class);
|
||||
$app->post('[/]', [Clave::class, 'do_edit']);
|
||||
});
|
7
resources/routes/web/admin/login.php
Normal file
7
resources/routes/web/admin/login.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
use ProVM\NotariaRaby\Common\Controller\Web\Admin\Login;
|
||||
|
||||
$app->group('/login', function($app) {
|
||||
$app->get('[/]', Login::class);
|
||||
$app->post('[/]', [Login::class, 'do_login']);
|
||||
});
|
Reference in New Issue
Block a user