Browse Source

add function validator

itizawa 6 years ago
parent
commit
1ca0e3660e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/server/routes/apiv3/customize-setting.js

+ 6 - 0
src/server/routes/apiv3/customize-setting.js

@@ -33,6 +33,12 @@ module.exports = (crowi) => {
     behavior: [
       body('behaviorType').isString(),
     ],
+    function: [
+      body('isEnabledTimeline').isBoolean(),
+      body('isSavedStatesOfTabChanges').isBoolean(),
+      body('isEnabledAttachTitleHeader').isBoolean(),
+      body('recentCreatedLimit').isInt(),
+    ],
   };
 
   /**