Skip to content

Commit 10524e4

Browse files
authored
Fix proxy example (fix #780)
the glob pattern was too narrow, woudl not catch subpaths.
1 parent 5f4d89f commit 10524e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ In addition to static urls you can also use glob patterns to match URLs, e.g. `/
3131

3232
``` js
3333
proxyTable: {
34-
'*': {
34+
'**': {
3535
target: 'http://jsonplaceholder.typicode.com',
3636
filter: function (pathname, req) {
3737
return pathname.match('^/api') && req.method === 'GET'

0 commit comments

Comments
 (0)