Browse Source

add express validator

kaori 3 years ago
parent
commit
b60292d824
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/server/routes/apiv3/notification-setting.js

+ 1 - 1
packages/app/src/server/routes/apiv3/notification-setting.js

@@ -233,7 +233,7 @@ module.exports = (crowi) => {
   });
 
 
-  router.get('/global-notification/:id', loginRequiredStrictly, adminRequired, async(req, res) => {
+  router.get('/global-notification/:id', loginRequiredStrictly, adminRequired, validator.globalNotification, async(req, res) => {
 
     const notificationSettingId = req.params.id;
     let globalNotification;