Skip to content

Commit

Permalink
Merge pull request #45 from CodeProKid/master
Browse files Browse the repository at this point in the history
support dashes in queue names
  • Loading branch information
hughdevore authored Mar 1, 2018
2 parents 062b2ea + 873ade0 commit f0db89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function setup() {
public function register_rest_endpoint() {

register_rest_route(
self::API_NAMESPACE, '/' . self::ENDPOINT_RUN . '/(?P<queue>[\w]+)', [
self::API_NAMESPACE, '/' . self::ENDPOINT_RUN . '/(?P<queue>[\w|-]+)', [
'methods' => 'PUT',
'callback' => [ $this, 'run_queue_processor' ],
'permission_callback' => [ $this, 'check_rest_permissions' ],
Expand Down

0 comments on commit f0db89c

Please sign in to comment.