|
@@ -10,7 +10,6 @@ module.exports = function(crowi, app) {
|
|
|
const loginRequiredStrictly = require('../middlewares/login-required')(crowi);
|
|
const loginRequiredStrictly = require('../middlewares/login-required')(crowi);
|
|
|
const loginRequired = require('../middlewares/login-required')(crowi, true);
|
|
const loginRequired = require('../middlewares/login-required')(crowi, true);
|
|
|
const adminRequired = require('../middlewares/admin-required')(crowi);
|
|
const adminRequired = require('../middlewares/admin-required')(crowi);
|
|
|
- const certifySharedPage = require('../middlewares/certify-shared-page')(crowi);
|
|
|
|
|
const certifySharedFile = require('../middlewares/certify-shared-file')(crowi);
|
|
const certifySharedFile = require('../middlewares/certify-shared-file')(crowi);
|
|
|
const csrf = require('../middlewares/csrf')(crowi);
|
|
const csrf = require('../middlewares/csrf')(crowi);
|
|
|
|
|
|
|
@@ -26,7 +25,6 @@ module.exports = function(crowi, app) {
|
|
|
const attachment = require('./attachment')(crowi, app);
|
|
const attachment = require('./attachment')(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 revision = require('./revision')(crowi, app);
|
|
|
|
|
const search = require('./search')(crowi, app);
|
|
const search = require('./search')(crowi, app);
|
|
|
const hackmd = require('./hackmd')(crowi, app);
|
|
const hackmd = require('./hackmd')(crowi, app);
|
|
|
|
|
|
|
@@ -166,8 +164,6 @@ module.exports = function(crowi, app) {
|
|
|
app.post('/_api/attachments.removeProfileImage' , accessTokenParser , loginRequiredStrictly , csrf, attachment.api.removeProfileImage);
|
|
app.post('/_api/attachments.removeProfileImage' , accessTokenParser , loginRequiredStrictly , csrf, attachment.api.removeProfileImage);
|
|
|
app.get('/_api/attachments.limit' , accessTokenParser , loginRequiredStrictly, attachment.api.limit);
|
|
app.get('/_api/attachments.limit' , accessTokenParser , loginRequiredStrictly, attachment.api.limit);
|
|
|
|
|
|
|
|
- app.get('/_api/revisions.get' , certifySharedPage , accessTokenParser , loginRequired , revision.api.get);
|
|
|
|
|
-
|
|
|
|
|
app.get('/trash$' , loginRequired , page.trashPageShowWrapper);
|
|
app.get('/trash$' , loginRequired , page.trashPageShowWrapper);
|
|
|
app.get('/trash/$' , loginRequired , page.trashPageListShowWrapper);
|
|
app.get('/trash/$' , loginRequired , page.trashPageListShowWrapper);
|
|
|
app.get('/trash/*/$' , loginRequired , page.deletedPageListShowWrapper);
|
|
app.get('/trash/*/$' , loginRequired , page.deletedPageListShowWrapper);
|