10 lines
519 B
JavaScript
10 lines
519 B
JavaScript
const notificationController = require('../controllers/notification.controller')
|
|
module.exports = (app) => {
|
|
|
|
app.post('/notification',notificationController.createNotification);
|
|
app.get('/getNotifications',notificationController.getNotifications);
|
|
app.delete('/deleteNotification/:id',notificationController.deleteNotification);
|
|
app.get('/getNotificationId/:id',notificationController.getNotificationId);
|
|
app.delete('/deleteAllNotifications',notificationController.deleteAllNotifications)
|
|
|
|
} |