-
Notifications
You must be signed in to change notification settings - Fork 394
/
urls.py
18 lines (16 loc) · 956 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
""" Django notification urls file """
# -*- coding: utf-8 -*-
from django.urls import path
from . import views
app_name = "notifications"
urlpatterns = [
path("/list/<str:filter_by>/", views.NotificationsList.as_view(), name="list"),
path("mark-all-as-read/", views.mark_all_as_read, name="mark_all_as_read"),
path("mark-as-read/<int:slug>)/", views.mark_as_read, name="mark_as_read"),
path("mark-as-unread/<int:slug>/", views.mark_as_unread, name="mark_as_unread"),
path("delete/<int:slug>/", views.delete, name="delete"),
path("api/unread_count/", views.live_unread_notification_count, name="live_unread_notification_count"),
path("api/all_count/", views.live_all_notification_count, name="live_all_notification_count"),
path("api/unread_list/", views.live_unread_notification_list, name="live_unread_notification_list"),
path("api/all_list/", views.live_all_notification_list, name="live_all_notification_list"),
]