
    7>h                         d dl mZmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ  e       Zej!                  d       ee      fd	ed
efd       Zy)    )	APIRouterDepends)Session)get_db)User)NotificationsRepo)Response)Dictz%/notifications/{notification_id}/readnotification_iddbc                 n   K   t        |      }|j                  |       }t        j                  d      S w)z$
    Read a single notification
    Notification)name)r   read_single_notificationr	   put)r   r   notifications_reponotifications       ;/var/www/html/DP/alpha_backend/app/routers/notifications.pyread_notificationr      s2      +2.%>>OL<<^,,s   35N)fastapir   r   sqlalchemy.ormr   app.common.databaser   app.common.modelsr   #app.repositories.notifications_repor   app.utils.responser	   typingr
   routerpatchintr        r   <module>r"      sS    & " & " A ' 	56)0-S -&- 7-r!   