group('/auth', function($app) { $app->group('/login', function ($app) { $app->get('[/]', [Auth::class, 'login']); $app->post('[/]', [Auth::class, 'doLogin']); }); $app->get('/logout', [Auth::class, 'logout']); });