diff options
author | franck cuny <franck@lumberjaph.net> | 2010-06-22 18:02:55 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-06-22 18:02:55 +0200 |
commit | 34b42bc83c4e30ab3599d37934526c637fb5db88 (patch) | |
tree | c3fea1c47ffbf51fc4d144efc316486091a83d93 /lib/Net/Presque.pm | |
parent | presque client (diff) | |
download | net-presque-34b42bc83c4e30ab3599d37934526c637fb5db88.tar.gz |
small fix
Diffstat (limited to 'lib/Net/Presque.pm')
-rw-r--r-- | lib/Net/Presque.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Net/Presque.pm b/lib/Net/Presque.pm index 9a85ea9..390eb9e 100644 --- a/lib/Net/Presque.pm +++ b/lib/Net/Presque.pm @@ -4,7 +4,7 @@ use MooseX::Net::API; net_api_declare presque => ( api_format => 'json', - api_format_mode => 'append', + api_format_mode => 'content-type', ); net_api_method fetch_job => ( @@ -16,6 +16,7 @@ net_api_method fetch_job => ( net_api_method create_job => ( method => 'POST', + strict => 0, path => '/q/:queue_name', params => [qw/queue_name/], required => [qw/queue_name/], @@ -28,8 +29,9 @@ net_api_method reset_queue => ( required => [qw/queue_name/], ); -net_api_method job_as_failed => ( +net_api_method failed_job => ( method => 'PUT', + strict => 0, path => '/q/:queue_name', params => [qw/queue_name/], required => [qw/queue_name/], @@ -70,7 +72,7 @@ net_api_method worker_stats => ( required => [qw/worker_id/], ); -net_api_mehod workers_stats => ( +net_api_method workers_stats => ( method => 'GET', path => '/w/', ); |