Skip to content

Instantly share code, notes, and snippets.

sub startup {
my ($self) = @_;
my $router = $self->routes->namespace(['MyApp::Controller']);
my $auth = $router->under('/')->to('auth#authenticate');
$auth->get('/foo')->to('foo#get');
}