Class: NotificationsController
Defined in: backends/web-backend/src/notifications/notifications.controller.ts:8
Constructors
Constructor
new NotificationsController(
notificationsService):NotificationsController
Defined in: backends/web-backend/src/notifications/notifications.controller.ts:9
Parameters
notificationsService
Returns
NotificationsController
Methods
list()
list(
req):Promise<{notifications:object[];unreadCount:number; }>
Defined in: backends/web-backend/src/notifications/notifications.controller.ts:13
Parameters
req
Returns
Promise<{ notifications: object[]; unreadCount: number; }>
read()
read(
id,req):Promise<void>
Defined in: backends/web-backend/src/notifications/notifications.controller.ts:31
Parameters
id
string
req
Returns
Promise<void>
readAll()
readAll(
req):Promise<void>
Defined in: backends/web-backend/src/notifications/notifications.controller.ts:25
Parameters
req
Returns
Promise<void>
unreadCount()
unreadCount(
req):Promise<{unreadCount:number; }>
Defined in: backends/web-backend/src/notifications/notifications.controller.ts:19
Parameters
req
Returns
Promise<{ unreadCount: number; }>
