Skip to content

Commit 53b9a0e

Browse files
docs: improve the documentation of path matching behavior (#2036)
Co-authored-by: Sebastian Beltran <[email protected]>
1 parent 35e18b6 commit 53b9a0e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

_includes/api/en/4x/app-use.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ mounting middleware.
7979
<tr>
8080
<td>Path</td>
8181
<td markdown="1">
82-
This will match paths starting with `/abcd`:
82+
Matches the exact path `/abcd` and any sub-paths starting with `/abcd/` (for example, `/abcd/foo`):
83+
8384

8485
```js
8586
app.use('/abcd', function (req, res, next) {

_includes/api/en/5x/app-use.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ mounting middleware.
8080
<tr>
8181
<td>Path</td>
8282
<td markdown="1">
83-
This will match paths starting with `/abcd`:
83+
Matches the exact path `/abcd` and any sub-paths starting with `/abcd/` (for example, `/abcd/foo`):
84+
8485

8586
```js
8687
app.use('/abcd', (req, res, next) => {

0 commit comments

Comments
 (0)