|
|
@@ -263,9 +263,6 @@ module.exports = function(crowi, app) {
|
|
|
renderVars.path = page.path;
|
|
|
renderVars.revision = page.revision;
|
|
|
renderVars.author = page.revision.author;
|
|
|
- console.log(renderVars.path);
|
|
|
- console.log(renderVars.revision);
|
|
|
- console.log(renderVars.author);
|
|
|
|
|
|
return Revision.findRevisionList(page.path, {})
|
|
|
.then(function(tree) {
|
|
|
@@ -314,6 +311,7 @@ module.exports = function(crowi, app) {
|
|
|
const pageName = originalUrl.replace(/^\/([^/]*).*$/, '$1');
|
|
|
Page.findPage(`/${pageName}/_template`)
|
|
|
.then(function(page) {
|
|
|
+ debug('Page not found', path);
|
|
|
console.log('---------------------------template found');
|
|
|
pageTeamplate = 'customlayout-selector/not_found';
|
|
|
})
|
|
|
@@ -863,7 +861,6 @@ module.exports = function(crowi, app) {
|
|
|
const pagePath = req.query.path || null;
|
|
|
const pageId = req.query.page_id || null; // TODO: handling
|
|
|
const revisionId = req.query.revision_id || null;
|
|
|
- console.log('-------path-------', req.query.path);
|
|
|
|
|
|
if (!pageId && !pagePath) {
|
|
|
return res.json(ApiResponse.error(new Error('Parameter path or page_id is required.')));
|