We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As of hapi 10.40 hapi supports adding lifecycle extensions at the route level in the route config: hapijs/hapi#2566
We can now do the following
config: { ext: { onPreHandler: { method: function (req, reply) { var data = req.payload.data data.timeOfReception = new Date() reply.continue() } } } }
Proposing we remove the specific before handler code in hapi-harvester : https://github.com/agco/hapi-harvester/blob/develop/lib/plugin.js#L157
and leverage the standard lifecycle route handlers instead
The text was updated successfully, but these errors were encountered:
removing custom before handler in favour of ootb lifecycle hooks on r…
5bf2317
…outes #12
Successfully merging a pull request may close this issue.
As of hapi 10.40 hapi supports adding lifecycle extensions at the route level in the route config: hapijs/hapi#2566
We can now do the following
Proposing we remove the specific before handler code in hapi-harvester : https://github.com/agco/hapi-harvester/blob/develop/lib/plugin.js#L157
and leverage the standard lifecycle route handlers instead
The text was updated successfully, but these errors were encountered: