Created
October 6, 2012 01:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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