Explorar el Código

add validater

takeru0001 hace 5 años
padre
commit
bd2d7b99f0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/server/routes/apiv3/page.js

+ 3 - 0
src/server/routes/apiv3/page.js

@@ -138,6 +138,9 @@ module.exports = (crowi) => {
       body('hierarchyType').isString().isIn(['allSubordinatedPage', 'decideHierarchy']),
       body('hierarchyValue').isNumeric(),
     ],
+    exist: [
+      query('path').isString(),
+    ],
   };
 
   /**