2016-06-24 02:26:09 +02:00
|
|
|
from django.conf.urls import url
|
2016-06-24 01:06:20 +02:00
|
|
|
|
|
|
|
# Future endpoints should add to urls.py, which includes these legacy urls
|
|
|
|
|
|
|
|
legacy_urls = [
|
|
|
|
# These are json format views used by the web client. They require a logged in browser.
|
|
|
|
url(r'^json/make_stream_public$', 'zerver.views.streams.json_make_stream_public'),
|
|
|
|
url(r'^json/make_stream_private$', 'zerver.views.streams.json_make_stream_private'),
|
2016-10-12 05:13:32 +02:00
|
|
|
url(r'^json/invite_users$', 'zerver.views.invite.json_invite_users'),
|
|
|
|
url(r'^json/bulk_invite_users$', 'zerver.views.invite.json_bulk_invite_users'),
|
2016-10-12 05:15:02 +02:00
|
|
|
url(r'^json/refer_friend$', 'zerver.views.invite.json_refer_friend'),
|
2016-06-24 01:06:20 +02:00
|
|
|
url(r'^json/settings/change$', 'zerver.views.user_settings.json_change_settings'),
|
|
|
|
url(r'^json/notify_settings/change$', 'zerver.views.user_settings.json_change_notify_settings'),
|
|
|
|
url(r'^json/ui_settings/change$', 'zerver.views.user_settings.json_change_ui_settings'),
|
|
|
|
url(r'^json/subscriptions/remove$', 'zerver.views.streams.json_remove_subscriptions'),
|
2016-10-17 23:49:03 +02:00
|
|
|
|
|
|
|
# We should remove this endpoint and all code related to it.
|
|
|
|
# It returns a 404 if the stream doesn't exist, which is confusing
|
|
|
|
# for devs, and I don't think we need to go to the server
|
|
|
|
# any more to find out about subscriptions, since they are already
|
|
|
|
# pushed to us via the event system.
|
2016-06-24 01:06:20 +02:00
|
|
|
url(r'^json/subscriptions/exists$', 'zerver.views.streams.json_stream_exists'),
|
2016-10-17 23:49:03 +02:00
|
|
|
|
2016-06-24 01:06:20 +02:00
|
|
|
url(r'^json/subscriptions/property$', 'zerver.views.streams.json_subscription_property'),
|
|
|
|
url(r'^json/get_subscribers$', 'zerver.views.streams.json_get_subscribers'),
|
2016-10-12 04:50:38 +02:00
|
|
|
url(r'^json/fetch_api_key$', 'zerver.views.auth.json_fetch_api_key'),
|
2016-06-24 01:06:20 +02:00
|
|
|
url(r'^json/tutorial_send_message$', 'zerver.views.tutorial.json_tutorial_send_message'),
|
|
|
|
url(r'^json/tutorial_status$', 'zerver.views.tutorial.json_tutorial_status'),
|
|
|
|
url(r'^json/report_error$', 'zerver.views.report.json_report_error'),
|
|
|
|
url(r'^json/report_send_time$', 'zerver.views.report.json_report_send_time'),
|
|
|
|
url(r'^json/report_narrow_time$', 'zerver.views.report.json_report_narrow_time'),
|
|
|
|
url(r'^json/report_unnarrow_time$', 'zerver.views.report.json_report_unnarrow_time'),
|
|
|
|
url(r'^json/upload_file$', 'zerver.views.upload.json_upload_file'),
|
|
|
|
url(r'^json/messages_in_narrow$', 'zerver.views.messages.json_messages_in_narrow'),
|
|
|
|
url(r'^json/update_message$', 'zerver.views.messages.json_update_message'),
|
|
|
|
url(r'^json/fetch_raw_message$', 'zerver.views.messages.json_fetch_raw_message'),
|
|
|
|
url(r'^json/set_muted_topics$', 'zerver.views.json_set_muted_topics'),
|
|
|
|
url(r'^json/set_avatar$', 'zerver.views.user_settings.json_set_avatar'),
|
|
|
|
url(r'^json/time_setting$', 'zerver.views.user_settings.json_time_setting'),
|
|
|
|
url(r'^json/left_side_userlist$', 'zerver.views.user_settings.json_left_side_userlist'),
|
2016-06-23 11:32:45 +02:00
|
|
|
url(r'^json/language_setting$', 'zerver.views.user_settings.json_language_setting'),
|
2016-06-24 01:06:20 +02:00
|
|
|
]
|