Skip to content

Is using app.get instead of app.use for middleware to apply only on GET routes acceptable? #3095

Answered by Meess
ilshm asked this question in Q&A
Discussion options

You must be logged in to vote

That sounds like the recommended way, also described in the docs, so I that makes perfect sense!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ilshm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants