feat(notifications): add notification list and detail endpoints
This commit introduces new endpoints for managing notifications, including listing and retrieving individual notification details. **New Features:** - Added `notification_list` endpoint to retrieve a list of notifications - Added `notification_detail` endpoint to fetch details of a specific notification by ID **Enhancements & Refinements:** - Cleaned up trailing whitespace in `urls.py` and `views.py` files ```
This commit is contained in:
2 files changed
-4
No files matched your search
@@ -7,5 +7,3 @@ urlpatterns = [
|
||||
path("list/", views.notification_list, name="notification_list"),
|
||||
path("<int:pk>/detail/", views.notification_detail, name="notification_detail"),
|
||||
]
|
||||
|
||||
|
||||
@@ -37,5 +37,3 @@ def notification_detail(request, pk):
|
||||
"notifications/notification_detail.html",
|
||||
{"notification": notification},
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user