Add the ability to unsubscribe all users from a stream

This resolves Trac #2022

(imported from commit 23d5129a6bec40c33eaf71953cd41ec387646a39)
This commit is contained in:
acrefoot
2013-11-21 19:12:53 -05:00
parent 7cddadd86f
commit 4cd1d69ea0
6 changed files with 152 additions and 17 deletions

View File

@@ -182,7 +182,8 @@ v1_api_and_json_patterns = patterns('zerver.views',
{'GET': 'get_subscribers_backend'}),
url(r'^streams/(?P<stream_name>.*)$', 'rest_dispatch',
{'HEAD': 'stream_exists_backend',
'GET': 'stream_exists_backend'}),
'GET': 'stream_exists_backend',
'DELETE': 'deactivate_stream_backend'}),
url(r'^users$', 'rest_dispatch',
{'GET': 'get_members_backend'}),
url(r'^users/me$', 'rest_dispatch',