Closed caioedut closed 1 year ago
following https://github.com/Howard86/next-api-handler/blob/main/src/lib/router-builder.ts#L88-L91
res.status(200).json({
success: true,
data,
});
atm we cannot update response format from router-builder
ideally we should have a response dto that we can customise the response
I just don't want props "success"/"error" and data on my response.