Format the response to standard format (like in Nest.js) #674
Unanswered
adarshaacharya
asked this question in
Q&A
Replies: 1 comment
-
https://elysiajs.com/life-cycle/map-response.html is probably what you are looking for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to format the standard response in Elysia js.
In Nest.js we used to have response interceptor but not sure about Elysia.
For example :
The response from handler :
should be formatted as below:
Note: this should be global settings and should handle the error case as well.
Beta Was this translation helpful? Give feedback.
All reactions