forked from DebaucheryLibrarian/traxxx
Added notification clear, improved notification styling.
This commit is contained in:
@@ -58,6 +58,8 @@ const {
|
||||
const {
|
||||
addAlert,
|
||||
removeAlert,
|
||||
updateNotifications,
|
||||
updateNotification,
|
||||
} = require('./alerts');
|
||||
|
||||
async function initServer() {
|
||||
@@ -91,6 +93,9 @@ async function initServer() {
|
||||
|
||||
router.post('/api/users', signup);
|
||||
|
||||
router.patch('/api/users/:userId/notifications', updateNotifications);
|
||||
router.patch('/api/users/:userId/notifications/:notificationId', updateNotification);
|
||||
|
||||
router.post('/api/stashes', createStash);
|
||||
router.patch('/api/stashes/:stashId', updateStash);
|
||||
router.delete('/api/stashes/:stashId', removeStash);
|
||||
|
||||
Reference in New Issue
Block a user