|
|
@@ -15,6 +15,7 @@ module.exports = function(crowi, app) {
|
|
|
, installer = require('./installer')(crowi, app)
|
|
|
, user = require('./user')(crowi, app)
|
|
|
, attachment= require('./attachment')(crowi, app)
|
|
|
+ , tag = require('./tag')(crowi, app)
|
|
|
, comment = require('./comment')(crowi, app)
|
|
|
, bookmark = require('./bookmark')(crowi, app)
|
|
|
, revision = require('./revision')(crowi, app)
|
|
|
@@ -202,6 +203,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.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.get('/_api/tags.search' , accessTokenParser, loginRequired(crowi, app, false), tag.api.search);
|
|
|
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.remove' , accessTokenParser , loginRequired(crowi, app) , csrf, comment.api.remove);
|