From 5287c2ea0815431216b19c9cee119e48745fb740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 6 Jun 2018 15:46:43 -0400 Subject: [PATCH] #6554 --- src/middleware/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/render.js b/src/middleware/render.js index b3c5cdb814..4d6476dc34 100644 --- a/src/middleware/render.js +++ b/src/middleware/render.js @@ -70,7 +70,7 @@ module.exports = function (middleware) { if (req.route && req.route.path === '/api/') { options.title = '[[pages:home]]'; } - + req.app.set('json spaces', global.env === 'development' || req.query.pretty ? 4 : 0); return res.json(options); }