Explorar o código

remove comment and added csrf

ryuichi-e %!s(int64=5) %!d(string=hai) anos
pai
achega
85c8f4a7c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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');