about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-05-08 18:12:54 +0200
committerfranck cuny <franck@lumberjaph.net>2010-05-08 18:12:54 +0200
commitbb00a0cc145dd1e172cf64c0ad3b66e8f9e96a7e (patch)
tree09273fee2106ef9a7037e8c6ee20db85ffcfdcf4 /lib
parentcleanup (diff)
downloadpresque-bb00a0cc145dd1e172cf64c0ad3b66e8f9e96a7e.tar.gz
update regex for restqueue handler
Diffstat (limited to 'lib')
-rw-r--r--lib/presque.pm10
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} );