Wednesday, 10 May 2017

Difference between app.use('/', router) and app.use(router)

I am working on a node.js application and saw that some people use
app.use('/router')
and some people use
app.use(router)
What is the difference between these two and which one should I use?



via Luud van Keulen

No comments:

Post a Comment