
    hA                         d dl Z d dlmZmZmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZmZ  e       Z e         e j                  dd      Zej#                  d	       ed
       ed
       ee      fdededefd       Zy)    N)	APIRouterDependsForm)"disable_installed_extensions_check)check_user_is_admin)Notification)NotificationCreateNotificationResponseFILE_STORAGE_PATHfilesz/notifications.user_idtitledependenciesc                     |\  }}t        | |      }|j                  |       |j                          |j                  |       |S )N)r   r   )r   addcommitrefresh)r   r   r   dbadminnew_notifications         g/Users/theessential/Documents/Github/KofAcademy/kof-academy-backend/app/routers/admins/notifications.pycreate_notificationr      sI     IB#
 FFIIKJJ     )osfastapir   r   r   fastapi_pagination.utilsr   app.utils.authentificationr   app.models.notificationr   app.schemas.adminr	   r
   routergetenvr   poststrtupler    r   r   <module>r&      s    	 , , G : 1 F	 " $BII17; 9c!"56  r   