mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
urls: Use unqualified imports.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e70f2ae58d
commit
5297e4a30a
@@ -3,30 +3,38 @@ from typing import Any
|
||||
from django.conf.urls import include
|
||||
from django.urls import path
|
||||
|
||||
import zilencer.views
|
||||
from zerver.lib.rest import rest_dispatch
|
||||
from zilencer.views import (
|
||||
register_remote_push_device,
|
||||
register_remote_server,
|
||||
remote_server_check_analytics,
|
||||
remote_server_notify_push,
|
||||
remote_server_post_analytics,
|
||||
unregister_all_remote_push_devices,
|
||||
unregister_remote_push_device,
|
||||
)
|
||||
|
||||
i18n_urlpatterns: Any = []
|
||||
|
||||
# Zilencer views following the REST API style
|
||||
v1_api_and_json_patterns = [
|
||||
path('remotes/push/register', rest_dispatch,
|
||||
{'POST': zilencer.views.register_remote_push_device}),
|
||||
{'POST': register_remote_push_device}),
|
||||
path('remotes/push/unregister', rest_dispatch,
|
||||
{'POST': zilencer.views.unregister_remote_push_device}),
|
||||
{'POST': unregister_remote_push_device}),
|
||||
path('remotes/push/unregister/all', rest_dispatch,
|
||||
{'POST': zilencer.views.unregister_all_remote_push_devices}),
|
||||
{'POST': unregister_all_remote_push_devices}),
|
||||
path('remotes/push/notify', rest_dispatch,
|
||||
{'POST': zilencer.views.remote_server_notify_push}),
|
||||
{'POST': remote_server_notify_push}),
|
||||
|
||||
# Push signup doesn't use the REST API, since there's no auth.
|
||||
path('remotes/server/register', zilencer.views.register_remote_server),
|
||||
path('remotes/server/register', register_remote_server),
|
||||
|
||||
# For receiving table data used in analytics and billing
|
||||
path('remotes/server/analytics', rest_dispatch,
|
||||
{'POST': zilencer.views.remote_server_post_analytics}),
|
||||
{'POST': remote_server_post_analytics}),
|
||||
path('remotes/server/analytics/status', rest_dispatch,
|
||||
{'GET': zilencer.views.remote_server_check_analytics}),
|
||||
{'GET': remote_server_check_analytics}),
|
||||
]
|
||||
|
||||
urlpatterns = [
|
||||
|
||||
Reference in New Issue
Block a user