Closed spidgorny closed 3 years ago
How can I make the JSON output to be pretty-printed (line breaks and indents)?
Function sendBody() in http-utils.ts does JSON.stringify(body). Any way to make it configurable?
I think I can set the res.body in ALL my controllers to pre-formatted JSON string, but this can be too much changes for a trivial problem.
Is there a output middleware? I've only seen middleware that processes input in some way.
Duplicate of #169 . Please close.
How can I make the JSON output to be pretty-printed (line breaks and indents)?
Function sendBody() in http-utils.ts does JSON.stringify(body). Any way to make it configurable?
I think I can set the res.body in ALL my controllers to pre-formatted JSON string, but this can be too much changes for a trivial problem.
Is there a output middleware? I've only seen middleware that processes input in some way.