Use rest_dispatch for beanstalk API

(imported from commit 9c261f648b39bb472718bbc763fd15883cbda4e9)
This commit is contained in:
Leo Franchi 2013-05-20 10:16:10 -04:00
parent a6486a1fa0
commit 3197a7fb89
2 changed files with 2 additions and 2 deletions

View File

@ -159,9 +159,10 @@ urlpatterns += patterns('zephyr.views',
{'POST': 'api_events_register'}),
# These are integration-specific web hook callbacks
url(r'^api/v1/external/beanstalk$', 'rest_dispatch',
{'POST': 'api_beanstalk_webhook'}),
url(r'^api/v1/external/github$', 'api_github_landing'),
url(r'^api/v1/external/jira$', 'api_jira_webhook'),
url(r'^api/v1/external/beanstalk$', 'api_beanstalk_webhook'),
url(r'^api/v1/external/pivotal$', 'api_pivotal_webhook'),
)

View File

@ -1767,7 +1767,6 @@ def beanstalk_decoder(view_func):
return _wrapped_view_func
@beanstalk_decoder
@authenticated_rest_api_view
@has_request_variables
def api_beanstalk_webhook(request, user_profile,
payload=REQ(converter=json_to_dict)):