Skip to content

Commit 146a163

Browse files
Merge pull request #2667 from tsa96/docs/global-prefix-pathtoregex
docs(global-prefix): add path-to-regex hint
2 parents 79a748a + b1297e2 commit 146a163

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/faq/global-prefix.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ Alternatively, you can specify route as a string (it will apply to every request
2020
```typescript
2121
app.setGlobalPrefix('v1', { exclude: ['cats'] });
2222
```
23+
24+
> info **Hint** The `path` property supports wildcard parameters using the [path-to-regexp](https://github.com/pillarjs/path-to-regexp#parameters) package. Note: this does not accept wildcard asterisks `*`. Instead, you must use parameters (e.g., `(.*)`, `:splat*`).

0 commit comments

Comments
 (0)