get('/', HomePage::class); // User Routes self::users($app); } protected static function users(App $app): void { $app->get('/users/register', RegisterUserPage::class); $app->post('/users/register', RegisterUserAction::class) ->add(VerifyPasswordMiddleware::class); } }