Current binding execute default handler regardless of configuration
corintho opened this issue · 0 comments
corintho commented
You currently have a hook on onPostHandler
. Although you can replace what gets returned to the client there, the default handler for the route gets executed anyway. That leads at least to running duplicate idempotent code, but can have undesired side effects.
You should change your hook to onPreHandler
, that way, you run your handler instead of the default handler, but running reply.continue()
in that case will just delegate to the default handler. And everything should just continue working.