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); }