notifications: can also mark it as unread

This commit is contained in:
Girish Ramakrishnan
2021-04-21 12:00:07 -07:00
parent bb3f9744fb
commit d437acebe2
5 changed files with 37 additions and 31 deletions
+2 -2
View File
@@ -130,10 +130,10 @@ function initializeExpressSync() {
router.get ('/api/v1/tasks/:taskId/logstream', token, authorizeAdmin, routes.tasks.getLogStream);
router.post('/api/v1/tasks/:taskId/stop', json, token, authorizeAdmin, routes.tasks.stopTask);
// notification routes
// notification routes (these are server level)
router.get ('/api/v1/notifications', token, routes.notifications.verifyOwnership, routes.notifications.list);
router.get ('/api/v1/notifications/:notificationId', token, routes.notifications.verifyOwnership, routes.notifications.get);
router.post('/api/v1/notifications/:notificationId', json, token, routes.notifications.verifyOwnership, routes.notifications.ack);
router.post('/api/v1/notifications/:notificationId', json, token, routes.notifications.verifyOwnership, routes.notifications.update);
// backup routes
router.get ('/api/v1/backups', token, authorizeAdmin, routes.backups.list);