diff --git a/src/api/notifications.py b/src/api/notifications.py index 38aeb00..bd91881 100644 --- a/src/api/notifications.py +++ b/src/api/notifications.py @@ -89,7 +89,7 @@ async def get_notification(notification_id: PydanticObjectId, user: CurrentUserD return NotificationData.from_notification(notification) -@notifications_router.get("/{notification_id}/read") +@notifications_router.post("/{notification_id}/read") async def read_notification(notification_id: PydanticObjectId, user: CurrentUserDep) -> NotificationData: """Mark a notification as read.""" notification = await Notification.get(notification_id, fetch_links=True)