From e9f421b51a36c2e2b23be4ec3927ffa7bef87bb0 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Mon, 24 Jul 2017 16:12:11 -0700 Subject: [PATCH] changed 'showLite' to use 'show' layout --- routes/serve-routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/serve-routes.js b/routes/serve-routes.js index 25710854..4a7073fc 100644 --- a/routes/serve-routes.js +++ b/routes/serve-routes.js @@ -36,7 +36,7 @@ module.exports = (app) => { const mimetypes = headers['accept'].split(','); if (mimetypes.includes('text/html')) { postToStats('show', originalUrl, ip, fileInfo.name, fileInfo.claimId, 'success'); - res.status(200).render('showLite', { fileInfo }); + res.status(200).render('showLite', { layout: 'show', fileInfo }); } else { postToStats('serve', originalUrl, ip, fileInfo.name, fileInfo.claimId, 'success'); serveFile(fileInfo, res); @@ -67,7 +67,7 @@ module.exports = (app) => { const mimetypes = headers['accept'].split(','); if (mimetypes.includes('text/html')) { postToStats('show', originalUrl, ip, fileInfo.name, fileInfo.claimId, 'success'); - res.status(200).render('showLite', { fileInfo }); + res.status(200).render('showLite', { layout: 'show', fileInfo }); } else { postToStats('serve', originalUrl, ip, fileInfo.name, fileInfo.claimId, 'success'); serveFile(fileInfo, res);