docs: improve the documentation of path matching behavior (#2036)

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
This commit is contained in:
Kushal Sharma
2025-08-18 09:10:13 +05:30
committed by GitHub
parent 35e18b624e
commit 53b9a0e2d8
2 changed files with 4 additions and 2 deletions

View File

@@ -79,7 +79,8 @@ mounting middleware.
<tr>
<td>Path</td>
<td markdown="1">
This will match paths starting with `/abcd`:
Matches the exact path `/abcd` and any sub-paths starting with `/abcd/` (for example, `/abcd/foo`):
```js
app.use('/abcd', function (req, res, next) {

View File

@@ -80,7 +80,8 @@ mounting middleware.
<tr>
<td>Path</td>
<td markdown="1">
This will match paths starting with `/abcd`:
Matches the exact path `/abcd` and any sub-paths starting with `/abcd/` (for example, `/abcd/foo`):
```js
app.use('/abcd', (req, res, next) => {