S
S
Svyatoslav Khusamov2016-08-06 22:03:02
Node.js
Svyatoslav Khusamov, 2016-08-06 22:03:02

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

1 answer(s)
A
Alexey Yarkov, 2016-08-06
@khusamov

stackoverflow.com/questions/14125997/difference-be...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question