Added /all/ for the path to all notifications

This commit is contained in:
Alvaro Mariano 2023-06-27 00:00:48 +00:00
parent f7c0353b3d
commit 645611c1e1
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- Converted the `level` field from a `CharField` to an `IntegerField`
- Extracted and improved the sample code
- Fixed variable types on JS code
- Added `/all/` for the path to all notifications
## 1.8.0

View file

@ -6,7 +6,7 @@ from . import views
app_name = "notifications"
urlpatterns = [
path("", views.AllNotificationsList.as_view(), name="all"),
path("all/", views.AllNotificationsList.as_view(), name="all"),
path("unread/", views.UnreadNotificationsList.as_view(), name="unread"),
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"),