Skip to content

Instantly share code, notes, and snippets.

@masaki
Created January 21, 2009 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masaki/49972 to your computer and use it in GitHub Desktop.
Save masaki/49972 to your computer and use it in GitHub Desktop.
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