You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
404B

  1. <?php
  2. declare(strict_types=1);
  3. use App\Controllers\HomeController;
  4. use App\Controllers\AuthController;
  5. $router->get('/', [HomeController::class, 'index']);
  6. $router->get('/users/{id}', [HomeController::class, 'user']);
  7. $router->get('/login', [AuthController::class, 'showLogin']);
  8. $router->post('/login', [AuthController::class, 'login']);
  9. $router->post('/logout', [AuthController::class, 'logout']);

Powered by TurnKey Linux.