diff --git a/humbug/urls.py b/humbug/urls.py index 59db1f89ff..c438d26407 100644 --- a/humbug/urls.py +++ b/humbug/urls.py @@ -138,7 +138,7 @@ urlpatterns += patterns('zephyr.views', 'POST': 'add_subscriptions_backend', 'PATCH': 'update_subscriptions_backend'}), url(r'^api/v1/register$', 'rest_dispatch', - {'POST': 'events_register_backend'}), + {'POST': 'api_events_register'}), # These are integration-specific web hook callbacks url(r'^api/v1/external/github$', 'api_github_landing'), diff --git a/zephyr/views.py b/zephyr/views.py index 375c170184..4c82c92419 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -1511,7 +1511,7 @@ def json_report_error(request, user_profile, message=POST, stacktrace=POST, def json_events_register(request, user_profile): return events_register_backend(request, user_profile) -@authenticated_api_view +# Does not need to be authenticated because it's called from rest_dispatch @has_request_variables def api_events_register(request, user_profile, apply_markdown=POST(default=False, converter=json_to_bool)):