Jelajahi Sumber

create tags button and endpoint

yusuketk 7 tahun lalu
induk
melakukan
8a8543d663
2 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 1 0
      src/server/routes/index.js
  2. 2 0
      src/server/routes/tag.js

+ 1 - 0
src/server/routes/index.js

@@ -202,6 +202,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('/tags', loginRequired(crowi, app, false), tag.showPage);
   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);

+ 2 - 0
src/server/routes/tag.js

@@ -7,6 +7,8 @@ module.exports = function(crowi, app) {
 
   actions.api = api;
 
+  actions.showPage = function(req, res) {
+  };
 
   /**
    * @api {get} /tags.search search tags