Skip to content

Commit

Permalink
docs: add event as first arg for proxyRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored May 22, 2023
1 parent d78d722 commit 3e5f427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ app.use('/1', eventHandler(() => '<h1>Hello world!</h1>'))
.use('/2', eventHandler(() => '<h1>Goodbye!</h1>'))

// We can proxy requests and rewrite cookie's domain and path
app.use('/api', eventHandler((event) => proxyRequest('https://example.com', {
app.use('/api', eventHandler((event) => proxyRequest(event, 'https://example.com', {
// f.e. keep one domain unchanged, rewrite one domain and remove other domains
cookieDomainRewrite: {
"example.com": "example.com",
Expand Down

0 comments on commit 3e5f427

Please sign in to comment.