Remove now obsolete /json/send_message route.

This commit is contained in:
Tim Abbott
2015-12-12 17:20:32 -08:00
parent 9cec758854
commit e95739961f
2 changed files with 0 additions and 5 deletions

View File

@@ -701,10 +701,6 @@ def same_realm_jabber_user(user_profile, email):
def api_send_message(request, user_profile): def api_send_message(request, user_profile):
return send_message_backend(request, user_profile) return send_message_backend(request, user_profile)
@authenticated_json_post_view
def json_send_message(request, user_profile):
return send_message_backend(request, user_profile)
# We do not @require_login for send_message_backend, since it is used # We do not @require_login for send_message_backend, since it is used
# both from the API and the web service. Code calling # both from the API and the web service. Code calling
# send_message_backend should either check the API key or check that # send_message_backend should either check the API key or check that

View File

@@ -110,7 +110,6 @@ urlpatterns += patterns('zerver.views',
url(r'^json/rename_stream$', 'streams.json_rename_stream'), url(r'^json/rename_stream$', 'streams.json_rename_stream'),
url(r'^json/make_stream_public$', 'streams.json_make_stream_public'), url(r'^json/make_stream_public$', 'streams.json_make_stream_public'),
url(r'^json/make_stream_private$', 'streams.json_make_stream_private'), url(r'^json/make_stream_private$', 'streams.json_make_stream_private'),
url(r'^json/send_message$', 'messages.json_send_message'),
url(r'^json/invite_users$', 'json_invite_users'), url(r'^json/invite_users$', 'json_invite_users'),
url(r'^json/bulk_invite_users$', 'json_bulk_invite_users'), url(r'^json/bulk_invite_users$', 'json_bulk_invite_users'),
url(r'^json/settings/change$', 'user_settings.json_change_settings'), url(r'^json/settings/change$', 'user_settings.json_change_settings'),