import {UserRoles} from '../../common/entities/UserDTO'; import {AuthenticationMWs} from '../middlewares/user/AuthenticationMWs'; import {RenderingMWs} from '../middlewares/RenderingMWs'; import {NotificationMWs} from '../middlewares/NotificationMWs'; import {Express} from 'express'; import {VersionMWs} from '../middlewares/VersionMWs'; export class NotificationRouter { public static route(app: Express) { this.addGetNotifications(app); } private static addGetNotifications(app: Express) { app.get('/api/notifications', AuthenticationMWs.authenticate, AuthenticationMWs.authorise(UserRoles.Guest), VersionMWs.injectGalleryVersion, NotificationMWs.list, RenderingMWs.renderResult ); } }