|
@@ -167,6 +167,7 @@ module.exports = function(crowi, app) {
|
|
|
app.post('/_api/pages.revertRemove' , loginRequired(crowi, app) , csrf, page.api.revertRemove); // (Avoid from API Token)
|
|
app.post('/_api/pages.revertRemove' , loginRequired(crowi, app) , csrf, page.api.revertRemove); // (Avoid from API Token)
|
|
|
app.post('/_api/pages.unlink' , loginRequired(crowi, app) , csrf, page.api.unlink); // (Avoid from API Token)
|
|
app.post('/_api/pages.unlink' , loginRequired(crowi, app) , csrf, page.api.unlink); // (Avoid from API Token)
|
|
|
app.post('/_api/pages.duplicate' , accessTokenParser, loginRequired(crowi, app), csrf, page.api.duplicate);
|
|
app.post('/_api/pages.duplicate' , accessTokenParser, loginRequired(crowi, app), csrf, page.api.duplicate);
|
|
|
|
|
+ app.get('/_api/pages.templates' , accessTokenParser , loginRequired(crowi, app, false) , page.api.templates);
|
|
|
app.get('/_api/comments.get' , accessTokenParser , loginRequired(crowi, app, false) , comment.api.get);
|
|
app.get('/_api/comments.get' , accessTokenParser , loginRequired(crowi, app, false) , comment.api.get);
|
|
|
app.post('/_api/comments.add' , form.comment, accessTokenParser , loginRequired(crowi, app) , csrf, comment.api.add);
|
|
app.post('/_api/comments.add' , form.comment, accessTokenParser , loginRequired(crowi, app) , csrf, comment.api.add);
|
|
|
app.post('/_api/comments.remove' , accessTokenParser , loginRequired(crowi, app) , csrf, comment.api.remove);
|
|
app.post('/_api/comments.remove' , accessTokenParser , loginRequired(crowi, app) , csrf, comment.api.remove);
|
|
@@ -178,7 +179,6 @@ module.exports = function(crowi, app) {
|
|
|
app.get( '/_api/attachments.list' , accessTokenParser , loginRequired(crowi, app, false) , attachment.api.list);
|
|
app.get( '/_api/attachments.list' , accessTokenParser , loginRequired(crowi, app, false) , attachment.api.list);
|
|
|
app.post('/_api/attachments.add' , uploads.single('file'), accessTokenParser, loginRequired(crowi, app) ,csrf, attachment.api.add);
|
|
app.post('/_api/attachments.add' , uploads.single('file'), accessTokenParser, loginRequired(crowi, app) ,csrf, attachment.api.add);
|
|
|
app.post('/_api/attachments.remove' , accessTokenParser , loginRequired(crowi, app) , csrf, attachment.api.remove);
|
|
app.post('/_api/attachments.remove' , accessTokenParser , loginRequired(crowi, app) , csrf, attachment.api.remove);
|
|
|
- app.get('/_api/page.template' , accessTokenParser , loginRequired(crowi, app, false) , page.api.template);
|
|
|
|
|
|
|
|
|
|
app.get( '/_api/revisions.get' , accessTokenParser , loginRequired(crowi, app, false) , revision.api.get);
|
|
app.get( '/_api/revisions.get' , accessTokenParser , loginRequired(crowi, app, false) , revision.api.get);
|
|
|
app.get( '/_api/revisions.ids' , accessTokenParser , loginRequired(crowi, app, false) , revision.api.ids);
|
|
app.get( '/_api/revisions.ids' , accessTokenParser , loginRequired(crowi, app, false) , revision.api.ids);
|