0 votes
in JavaScript by
What is the use of app.use() middleware in Express.JS?

1 Answer

0 votes
by

app.use() is intended for binding middleware to your application. The path is a "mount" or "prefix" path and limits the middleware to only apply to any paths requested that begin with it. It can even be used to embed another application:

...