فهرست منبع

comment out '/_/edit' action

Yuki Takei 7 سال پیش
والد
کامیت
673fc3ab72
2فایلهای تغییر یافته به همراه11 افزوده شده و 1 حذف شده
  1. 6 0
      lib/routes/index.js
  2. 5 1
      lib/routes/page.js

+ 6 - 0
lib/routes/index.js

@@ -202,7 +202,13 @@ module.exports = function(crowi, app) {
   //app.get('/_api/revision/:id'     , user.useUserData()         , revision.api.get);
   //app.get('/_api/r/:revisionId'    , user.useUserData()         , page.api.get);
 
+  /*
+   * WIP: removing pageEdit action
+   * see https://weseek.myjetbrains.com/youtrack/issue/GC-610
+   *
   app.post('/_/edit'                 , form.revision             , loginRequired(crowi, app) , csrf, page.pageEdit);
+  */
+
   app.get('/trash$'                  , loginRequired(crowi, app, false) , page.trashPageShowWrapper);
   app.get('/trash/$'                 , loginRequired(crowi, app, false) , page.trashPageListShowWrapper);
   app.get('/trash/*/$'               , loginRequired(crowi, app, false) , page.deletedPageListShowWrapper);

+ 5 - 1
lib/routes/page.js

@@ -681,6 +681,10 @@ module.exports = function(crowi, app) {
     });
   };
 
+  /*
+   * WIP: removing pageEdit action
+   * see https://weseek.myjetbrains.com/youtrack/issue/GC-610
+   *
   actions.pageEdit = function(req, res) {
 
     if (!req.form.isValid) {
@@ -774,7 +778,7 @@ module.exports = function(crowi, app) {
       return res.redirect(redirectPath);
     });
   };
-
+  */
 
 
   const api = actions.api = {};