This commit is contained in:
Barış Soner Uşaklı
2018-06-06 15:46:43 -04:00
parent d040544773
commit 5287c2ea08

View File

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