Implemented notifications, simplified alerts overview.

This commit is contained in:
2024-05-27 03:06:54 +02:00
parent 342ba6191e
commit 9e18fb4455
8 changed files with 417 additions and 84 deletions

View File

@@ -47,6 +47,7 @@ import {
fetchAlertsApi,
createAlertApi,
removeAlertApi,
fetchNotificationsApi,
updateNotificationApi,
updateNotificationsApi,
} from './alerts.js';
@@ -129,6 +130,7 @@ export default async function initServer() {
router.get('/api/users/:userId', fetchUserApi);
router.post('/api/users', signupApi);
router.get('/api/users/:userId/notifications', fetchNotificationsApi);
router.patch('/api/users/:userId/notifications', updateNotificationsApi);
router.patch('/api/users/:userId/notifications/:notificationId', updateNotificationApi);