The docs read:
The app.VERB() methods provide the routing functionality in Express, where VERB is one of the HTTP verbs, such as app.post(). Multiple
The given answer explains the main gist of it. Sadly, it is much less intuitive than you might think, with a lot of special cases when it is used in combination with parameters. Just check out some of the test cases in the app.param test file. Just to raise two examples:
next("route")
is called from a param
handler, it would skip all following routes that refer to that param
handler's own parameter name. In that test case, it skips all routes refering to the id
parameter....and there is more...
I'm sure there is a use-case for this kind of next('route')
lever, but, I agree with previous comments in that it certainly makes things complicated and non-intuitive.