2022-07-29 22:53:37 +02:00
|
|
|
from typing import List, Union
|
|
|
|
|
|
|
|
from django.urls import URLPattern, URLResolver, path
|
2020-06-11 00:54:34 +02:00
|
|
|
|
2016-10-27 13:44:48 +02:00
|
|
|
import zerver.views
|
|
|
|
import zerver.views.auth
|
|
|
|
import zerver.views.report
|
2020-06-11 00:54:34 +02:00
|
|
|
import zerver.views.streams
|
|
|
|
import zerver.views.tutorial
|
2016-06-24 01:06:20 +02:00
|
|
|
|
2020-10-23 02:43:28 +02:00
|
|
|
# Future endpoints should add to urls.py, which includes these legacy URLs
|
2016-06-24 01:06:20 +02:00
|
|
|
|
2022-07-29 22:53:37 +02:00
|
|
|
legacy_urls: List[Union[URLPattern, URLResolver]] = [
|
2016-06-24 01:06:20 +02:00
|
|
|
# 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.
|
2021-02-12 08:20:45 +01:00
|
|
|
path("json/subscriptions/exists", zerver.views.streams.json_stream_exists),
|
2017-01-24 06:34:26 +01:00
|
|
|
]
|