Answer the question
In order to leave comments, you need to log in
What is the fundamental difference between the app.use() and app.all() methods?
The only difference I have found so far is that when using app.use(), the mount event will be generated.
I think the question can be rephrased as follows. What is the difference between middleware and controllers?
In appearance, they are very similar, in terms of the fact that the arguments are the same and do almost the same thing, that is, they process the request.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question