Skip to content

backends-web-backend


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

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

AuthenticatedRequest

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

AuthenticatedRequest

Returns

Promise<void>


readAll()

readAll(req): Promise<void>

Defined in: backends/web-backend/src/notifications/notifications.controller.ts:25

Parameters

req

AuthenticatedRequest

Returns

Promise<void>


unreadCount()

unreadCount(req): Promise<{ unreadCount: number; }>

Defined in: backends/web-backend/src/notifications/notifications.controller.ts:19

Parameters

req

AuthenticatedRequest

Returns

Promise<{ unreadCount: number; }>