Skip to content

Commit 3d6134b

Browse files
17hzchimurai
andauthored
docs(readme): fix example code syntax error (#1014)
* docs(readme): fix example code syntax error * chore(README): lint fix --------- Co-authored-by: Steven Chim <655241+chimurai@users.noreply.github.com>
1 parent 8161d91 commit 3d6134b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,16 @@ import type { Filter, Options, RequestHandler } from 'http-proxy-middleware';
3838
const app = express();
3939

4040
const proxyMiddleware = createProxyMiddleware<Request, Response>({
41-
target: 'http://www.example.org/api',
42-
changeOrigin: true,
43-
}),
41+
target: 'http://www.example.org/api',
42+
changeOrigin: true,
43+
});
4444

4545
app.use('/api', proxyMiddleware);
4646

4747
app.listen(3000);
4848

4949
// proxy and keep the same base path "/api"
5050
// http://127.0.0.1:3000/api/foo/bar -> http://www.example.org/api/foo/bar
51-
5251
```
5352

5453
_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).

0 commit comments

Comments
 (0)