diff options
author | franck cuny <franck@lumberjaph.net> | 2010-05-08 18:12:54 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-05-08 18:12:54 +0200 |
commit | bb00a0cc145dd1e172cf64c0ad3b66e8f9e96a7e (patch) | |
tree | 09273fee2106ef9a7037e8c6ee20db85ffcfdcf4 /lib | |
parent | cleanup (diff) | |
download | presque-bb00a0cc145dd1e172cf64c0ad3b66e8f9e96a7e.tar.gz |
update regex for restqueue handler
Diffstat (limited to 'lib')
-rw-r--r-- | lib/presque.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/presque.pm b/lib/presque.pm index 9d88ca7..30f6413 100644 --- a/lib/presque.pm +++ b/lib/presque.pm @@ -36,11 +36,11 @@ sub app { my ( $class, %args ) = @_; my $self = $class->new( [ - '/q/(.*)' => 'presque::RestQueueHandler', - '/j/(.*)' => 'presque::JobQueueHandler', - '/stats/(.*)' => 'presque::StatusHandler', - '/control/(.*)' => 'presque::ControlHandler', - '/' => 'presque::IndexHandler', + '/q/([^/]+)(?:/)?(.*)' => 'presque::RestQueueHandler', + '/j/(.*)' => 'presque::JobQueueHandler', + '/stats/(.*)' => 'presque::StatusHandler', + '/control/(.*)' => 'presque::ControlHandler', + '/' => 'presque::IndexHandler', ] ); $self->config( delete $args{config} ); |