Add TuxiNet branding and document templates
This commit is contained in:
12
routes/web.php
Normal file
12
routes/web.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use App\Controllers\AuthController;
|
||||
use App\Controllers\DashboardController;
|
||||
use App\Core\Response;
|
||||
use App\Http\Middleware\AuthMiddleware;
|
||||
|
||||
$router->get('/login', fn() => (new AuthController())->showLogin());
|
||||
$router->post('/login', fn() => (new AuthController())->login());
|
||||
$router->get('/logout', fn() => (new AuthController())->logout(), [AuthMiddleware::class]);
|
||||
|
||||
$router->get('/', fn() => (new DashboardController())->index(), [AuthMiddleware::class]);
|
||||
Reference in New Issue
Block a user