2016-06-24 02:26:09 +02:00
|
|
|
from django.conf.urls import url
|
2016-10-27 13:44:48 +02:00
|
|
|
import zerver.views
|
|
|
|
import zerver.views.streams
|
|
|
|
import zerver.views.invite
|
|
|
|
import zerver.views.user_settings
|
|
|
|
import zerver.views.auth
|
|
|
|
import zerver.views.tutorial
|
|
|
|
import zerver.views.report
|
|
|
|
import zerver.views.upload
|
|
|
|
import zerver.views.messages
|
2017-01-07 21:34:32 +01:00
|
|
|
import zerver.views.muting
|
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.
|
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.
|
2017-01-24 06:21:14 +01:00
|
|
|
url(r'^json/subscriptions/exists$', zerver.views.streams.json_stream_exists),
|
2016-10-17 23:49:03 +02:00
|
|
|
|
2017-01-24 06:21:14 +01:00
|
|
|
url(r'^json/fetch_api_key$', zerver.views.auth.json_fetch_api_key),
|
2017-07-31 20:58:47 +02:00
|
|
|
# This old-style tutorial is due to be eliminated soon.
|
2017-01-24 06:21:14 +01: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),
|
2017-07-31 20:58:47 +02:00
|
|
|
# A version of these reporting views may make sense to support in
|
|
|
|
# the API for getting mobile analytics, but we may want something
|
|
|
|
# totally different.
|
2017-01-24 06:21:14 +01:00
|
|
|
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),
|
2017-01-24 06:34:26 +01:00
|
|
|
]
|