|
|
@@ -1,5 +1,5 @@
|
|
|
-import express from 'express';
|
|
|
import csrf from 'csurf';
|
|
|
+import express from 'express';
|
|
|
|
|
|
import apiV1FormValidator from '../middlewares/apiv1-form-validator';
|
|
|
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 tag = require('./tag')(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 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, 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-styles' , hackmd.loadStyles);
|
|
|
// app.post('/_api/hackmd.integrate' , accessTokenParser , loginRequiredStrictly , hackmd.validateForApi, hackmd.integrate);
|