Are the matching rules of express route path and middleware path the same?

  node.js, question

As the topic, is also for

app.get('/path')
 app.use('/path')

In general, using routes seems to only match/pathThis path seems to be matched in the intermediate piece/path,/path/toWait a minute. Is this the way?

I didn’t find the corresponding content in the official documents.

Should be equivalent. This usage of app.get should be alias of app.use