add admin login page at /login
This commit is contained in:
parent
f0da523ae4
commit
e8e7cf9ea9
7 changed files with 289 additions and 7 deletions
|
|
@ -2,11 +2,14 @@
|
|||
|
||||
use App\Controllers\AuthController;
|
||||
use App\Middleware\AuthMiddleware;
|
||||
use App\Middleware\CorsMiddleware;
|
||||
use Slim\App;
|
||||
use Slim\Routing\RouteCollectorProxy;
|
||||
|
||||
return function (App $app): void {
|
||||
|
||||
$app->add(CorsMiddleware::class);
|
||||
|
||||
$app->get('/me', [AuthController::class, 'me'])
|
||||
->add(AuthMiddleware::class);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue