-
-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
I have multiple hooks during the preValidation step including hooks that modify the content or run a signature check on the content. Because the hook is registered at the instance boot and not at the route level i cannot decide on the hooks order.
Line 70 in 83aea97
| fastify.addHook('preValidation', async function (req) { |
Would it be possible to put the hook in a dedicated exported function and add a new parameter to allow to manually load the hook via the function?
Motivation
No response
Example
No response
Metadata
Metadata
Assignees
Labels
No labels