send pretty json

This commit is contained in:
Girish Ramakrishnan
2016-05-31 11:14:59 -07:00
parent 65041743c5
commit 69aa11d6c6

View File

@@ -43,6 +43,7 @@ function initializeExpressSync() {
app.set('views', path.join(__dirname, 'oauth2views'));
app.set('view options', { layout: true, debug: false });
app.set('view engine', 'ejs');
app.set('json spaces', 2); // pretty json
if (process.env.BOX_ENV !== 'test') app.use(middleware.morgan('Box :method :url :status :response-time ms - :res[content-length]', { immediate: false }));