mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Use rest_dispatch for beanstalk API
(imported from commit 9c261f648b39bb472718bbc763fd15883cbda4e9)
This commit is contained in:
parent
a6486a1fa0
commit
3197a7fb89
@ -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'),
|
||||
)
|
||||
|
||||
|
||||
@ -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)):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user