Ver Fonte

remove comment and added csrf

ryuichi-e há 5 anos atrás
pai
commit
85c8f4a7c9
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/server/routes/apiv3/share-links.js

+ 1 - 1
src/server/routes/apiv3/share-links.js

@@ -56,7 +56,7 @@ module.exports = (crowi) => {
    *        description: Create new share link
    */
 
-  router.post('/', /* loginRequired, validator.shareLinkStatus, */ async(req, res) => {
+  router.post('/', loginRequired, csrf, validator.shareLinkStatus, ApiV3FormValidator, async(req, res) => {
     const { pageId, expiration, description } = req.body;
     const ShareLink = crowi.model('ShareLink');