first commit of refactor
This commit is contained in:
16
backend/api/routes/notificationConfig.js
Normal file
16
backend/api/routes/notificationConfig.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import express from 'express';
|
||||
import { authenticate } from '../../middleware/authenticate.js';
|
||||
import * as NotificationConfigController from '../../controllers/NotificationConfigController.js';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.use(authenticate);
|
||||
|
||||
router.get('/', NotificationConfigController.getConfig);
|
||||
|
||||
router.put('/', NotificationConfigController.updateConfig);
|
||||
|
||||
router.delete('/', NotificationConfigController.deleteConfig);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user