Replies: 1 comment 2 replies
-
Sure. Scenario: To do so using a hook would look like so: module.exports = ({ env }) => ({
// ..
'transformer': {
enabled: true,
config: {
// ..
hooks: {
postResponseTransform : (ctx) => {
ctx.body.time = time();
}
},
// ..
}
},
// ..
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was looking for an example on how to use ˋhooks.postResponseTransform(ctx)` method, would you have one?
thank you
Beta Was this translation helpful? Give feedback.
All reactions