mirror of https://github.com/zulip/zulip.git
Delete old route for /json/get_public_streams.
This commit is contained in:
parent
b5ab4d45f9
commit
48be2e33f8
|
@ -61,8 +61,7 @@ class PublicURLTest(TestCase):
|
|||
}
|
||||
post_urls = {200: ["/accounts/login/"],
|
||||
302: ["/accounts/logout/"],
|
||||
401: ["/json/get_public_streams",
|
||||
"/json/messages",
|
||||
401: ["/json/messages",
|
||||
"/json/invite_users",
|
||||
"/json/settings/change",
|
||||
"/json/subscriptions/remove",
|
||||
|
|
|
@ -381,10 +381,6 @@ def get_subscribers_backend(request, user_profile, stream_name=REQ('stream')):
|
|||
def json_get_subscribers(request, user_profile):
|
||||
return get_subscribers_backend(request, user_profile)
|
||||
|
||||
@authenticated_json_post_view
|
||||
def json_get_public_streams(request, user_profile):
|
||||
return get_public_streams_backend(request, user_profile)
|
||||
|
||||
# By default, lists all streams that the user has access to --
|
||||
# i.e. public streams plus invite-only streams that the user is on
|
||||
@has_request_variables
|
||||
|
@ -397,10 +393,6 @@ def get_streams_backend(request, user_profile,
|
|||
include_all_active)
|
||||
return json_success({"streams": streams})
|
||||
|
||||
def get_public_streams_backend(request, user_profile):
|
||||
return get_streams_backend(request, user_profile, include_public=True,
|
||||
include_subscribed=False, include_all_active=False)
|
||||
|
||||
@authenticated_json_post_view
|
||||
@has_request_variables
|
||||
def json_stream_exists(request, user_profile, stream=REQ,
|
||||
|
|
|
@ -100,7 +100,6 @@ if settings.DEVELOPMENT and settings.LOCAL_UPLOADS_DIR is not None:
|
|||
|
||||
urlpatterns += patterns('zerver.views',
|
||||
# These are json format views used by the web client. They require a logged in browser.
|
||||
url(r'^json/get_public_streams$', 'streams.json_get_public_streams'),
|
||||
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_private$', 'streams.json_make_stream_private'),
|
||||
|
|
Loading…
Reference in New Issue