From 96629b26b3d20fc199a78658b84bc7260ddabe5d Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 18 Dec 2025 21:38:22 +0545 Subject: [PATCH] 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 ``` --- src/api/notifications/urls.py | 2 -- src/api/notifications/views.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/api/notifications/urls.py b/src/api/notifications/urls.py index aa3f8a4..4ca9511 100644 --- a/src/api/notifications/urls.py +++ b/src/api/notifications/urls.py @@ -7,5 +7,3 @@ urlpatterns = [ path("list/", views.notification_list, name="notification_list"), path("/detail/", views.notification_detail, name="notification_detail"), ] - - diff --git a/src/api/notifications/views.py b/src/api/notifications/views.py index 81a4d7c..f9d53d7 100644 --- a/src/api/notifications/views.py +++ b/src/api/notifications/views.py @@ -37,5 +37,3 @@ def notification_detail(request, pk): "notifications/notification_detail.html", {"notification": notification}, ) - -