Skip to content

Instantly share code, notes, and snippets.

@masaki
Created Jan 21, 2009
Embed
What would you like to do?
my $router = HTTP::Router->define(sub {
$_->with({ controller => 'users' }, sub {
$_->match('/login')->register;
$_->match('/logout')->register;
$_->match('/signup')->register;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment