瀏覽代碼

clean code

Yuki Takei 3 年之前
父節點
當前提交
0fad044414
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      packages/app/src/server/routes/index.js

+ 3 - 3
packages/app/src/server/routes/index.js

@@ -1,5 +1,5 @@
-import express from 'express';
 import csrf from 'csurf';
 import csrf from 'csurf';
+import express from 'express';
 
 
 import apiV1FormValidator from '../middlewares/apiv1-form-validator';
 import apiV1FormValidator from '../middlewares/apiv1-form-validator';
 import injectResetOrderByTokenMiddleware from '../middlewares/inject-reset-order-by-token-middleware';
 import injectResetOrderByTokenMiddleware from '../middlewares/inject-reset-order-by-token-middleware';
@@ -54,7 +54,7 @@ module.exports = function(crowi, app) {
   const comment = require('./comment')(crowi, app);
   const comment = require('./comment')(crowi, app);
   const tag = require('./tag')(crowi, app);
   const tag = require('./tag')(crowi, app);
   const search = require('./search')(crowi, app);
   const search = require('./search')(crowi, app);
-  //// TODO: Replace the code in hackmd.js getting the script path from manifest.json
+  // == TODO: Replace the code in hackmd.js getting the script path from manifest.json
   // const hackmd = require('./hackmd')(crowi, app);
   // const hackmd = require('./hackmd')(crowi, app);
   const ogp = require('./ogp')(crowi);
   const ogp = require('./ogp')(crowi);
 
 
@@ -224,7 +224,7 @@ module.exports = function(crowi, app) {
   app.get('/trash/$'                  , loginRequired, (req, res) => res.redirect('/trash'));
   app.get('/trash/$'                  , loginRequired, (req, res) => res.redirect('/trash'));
   app.get('/trash/*/$'                , loginRequired, injectUserUISettings, page.deletedPageListShowWrapper);
   app.get('/trash/*/$'                , loginRequired, injectUserUISettings, page.deletedPageListShowWrapper);
 
 
-  //// TODO: Replace the code in hackmd.js getting the script path from manifest.json
+  // == TODO: Replace the code in hackmd.js getting the script path from manifest.json
   // app.get('/_hackmd/load-agent'          , hackmd.loadAgent);
   // app.get('/_hackmd/load-agent'          , hackmd.loadAgent);
   // app.get('/_hackmd/load-styles'         , hackmd.loadStyles);
   // app.get('/_hackmd/load-styles'         , hackmd.loadStyles);
   // app.post('/_api/hackmd.integrate'      , accessTokenParser , loginRequiredStrictly , hackmd.validateForApi, hackmd.integrate);
   // app.post('/_api/hackmd.integrate'      , accessTokenParser , loginRequiredStrictly , hackmd.validateForApi, hackmd.integrate);