mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Include a rest_dispatch in tornadoviews and call it from urls.py
(imported from commit aefe66b44be60b39d0f6bb3076502e964f1ed6bd)
This commit is contained in:
@@ -207,11 +207,12 @@ v1_api_and_json_patterns = patterns('zerver.views',
|
||||
{'PATCH': 'patch_bot_backend'}),
|
||||
url(r'^register$', 'rest_dispatch',
|
||||
{'POST': 'api_events_register'}),
|
||||
|
||||
) + patterns('zerver.tornadoviews',
|
||||
url(r'^messages/latest$', 'rest_dispatch',
|
||||
{'GET': 'get_updates_backend'}),
|
||||
url(r'^events$', 'rest_dispatch',
|
||||
{'GET': 'get_events_backend'}),
|
||||
|
||||
)
|
||||
if not settings.LOCALSERVER:
|
||||
v1_api_and_json_patterns += patterns('',
|
||||
|
||||
Reference in New Issue
Block a user