Explorar el Código

add function validator

itizawa hace 6 años
padre
commit
1ca0e3660e
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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(),
+    ],
   };
 
   /**