0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

WIP commit

This commit is contained in:
G.Ambatte
2023-01-23 15:18:50 +13:00
parent a4e6b2358a
commit da0372e44c
3 changed files with 11 additions and 5 deletions

View File

@@ -110,6 +110,7 @@ router.get('/admin/notification/lookup/:id', mw.adminOnly, (req, res, next)=>{
/* Add new notification */
router.post('/admin/notification/add', mw.adminOnly, async (req, res, next)=>{
console.log(req.body);
const notification = await NotificationModel.addNotification(req.body);
return res.json(notification);
});