Skip to content

Instantly share code, notes, and snippets.

@yko
Created April 15, 2011 07:40
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 yko/1175626eac15c7165e31 to your computer and use it in GitHub Desktop.
Save yko/1175626eac15c7165e31 to your computer and use it in GitHub Desktop.
my $auth = $r->bridge('/foos')->to('auth#auth');
$auth->route('/:foo_id', foo_id => qr/\.pdf^/)->to('pdf#somewhere');
$auth->route('/:foo_id')->to('page#somewhere');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment