Explorar o código

add express validator

kaori %!s(int64=3) %!d(string=hai) anos
pai
achega
b60292d824

+ 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;