Permalink
Browse files

Path::Dispatcher: less hackish / check, though still ugly

  • Loading branch information...
1 parent f45bc6f commit d5cea7fe30d0608223c64df99d4e46081dfe886f @sartak sartak committed Mar 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 path-dispatcher.pl
View
@@ -10,7 +10,7 @@
token_delimiter => '/',
};
- on [] => sub { MyApp::Hello->get_index(@_) };
+ on qr{^/$} => sub { MyApp::Hello->get_index(@_) };
under { REQUEST_METHOD => 'GET' } => sub {
on ['blog', qr/^\d+$/, qr/^\d+$/] => sub {

0 comments on commit d5cea7f

Please sign in to comment.