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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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