-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathurls.py
64 lines (60 loc) · 1.95 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from django.urls import path
from openwisp_notifications.api import views
app_name = 'openwisp_notifications'
def get_api_urls(api_views=None):
if not api_views:
api_views = views
return [
path('notification/', views.notifications_list, name='notifications_list'),
path(
'notification/read/',
views.notifications_read_all,
name='notifications_read_all',
),
path(
'notification/<uuid:pk>/',
views.notification_detail,
name='notification_detail',
),
path(
'notification/<uuid:pk>/redirect/',
views.notification_read_redirect,
name='notification_read_redirect',
),
path(
'user/<uuid:user_id>/user-setting/',
views.notification_setting_list,
name='user_notification_setting_list',
),
path(
'user/<uuid:user_id>/user-setting/<uuid:pk>/',
views.notification_setting,
name='user_notification_setting',
),
path(
'notification/ignore/',
views.ignore_object_notification_list,
name='ignore_object_notification_list',
),
path(
'notification/ignore/<str:app_label>/<str:model_name>/<uuid:object_id>/',
views.ignore_object_notification,
name='ignore_object_notification',
),
path(
'user/<uuid:user_id>/organization/<uuid:organization_id>/setting/',
views.organization_notification_setting,
name='organization_notification_setting',
),
# DEPRECATED
path(
'user/user-setting/',
views.notification_setting_list,
name='notification_setting_list',
),
path(
'user/user-setting/<uuid:pk>/',
views.notification_setting,
name='notification_setting',
),
]