Skip to content

Instantly share code, notes, and snippets.

@jashank
Created October 6, 2012 01:10
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 jashank/3843337 to your computer and use it in GitHub Desktop.
Save jashank/3843337 to your computer and use it in GitHub Desktop.
Dancer prefix bug: only the first of a set of side-by-side prefixes is accessible
#!/usr/bin/perl -w
use Dancer;
prefix '/a' => sub {
prefix '/b' => sub {
get '/foo' => sub { "Hello!" };
get '/bar' => sub { "Goodbye!" };
};
prefix '/c' => sub {
get '/foo' => sub { "Goodbye!" };
get '/bar' => sub { "Hello!" };
};
};
dance;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment