Parameters, Query Strings, and Modularizing Routes
What is the meaning of this line? Why do we pass routes in to app.use() method ?
routes is a bundle of detached routes and handlers (ie, a router).
app.use attaches them to the main application.
Read more about it in the documentation.
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.
I forgot my password