浏览代码

add validator

yusuketk 6 年之前
父节点
当前提交
53c641c7b9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/server/routes/apiv3/app-settings.js

+ 3 - 0
src/server/routes/apiv3/app-settings.js

@@ -121,6 +121,9 @@ module.exports = (crowi) => {
       body('accessKeyId').trim().matches(/^[\da-zA-Z]+$/),
       body('secretKey').trim(),
     ],
+    pluginSetting: [
+      body('isEnabledPlugins').isBoolean(),
+    ],
   };
 
   /**