|
|
@@ -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');
|
|
|
|