Skip to content

Commit 3b6cb43

Browse files
author
phix
committed
Update proxy import.
1 parent 6a512a1 commit 3b6cb43

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

web/setupProxy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const proxy = require('http-proxy-middleware')
1+
const { createProxyMiddleware } = require('http-proxy-middleware');
2+
23
const express = require('express')
34
const router = express.Router()
45

@@ -12,7 +13,7 @@ app.use('/', express.static(path))
1213
app.use('/datasets', express.static(path))
1314
app.use('/events', express.static(path))
1415
app.use('/lineage/:type/:namespace/:name', express.static(path))
15-
app.use(proxy('/api/v1', apiOptions))
16+
app.use(createProxyMiddleware('/api/v1', apiOptions))
1617

1718
router.get('/healthcheck', function (req, res) {
1819
res.send('OK')

0 commit comments

Comments
 (0)