We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a512a1 commit 3b6cb43Copy full SHA for 3b6cb43
1 file changed
web/setupProxy.js
@@ -1,4 +1,5 @@
1
-const proxy = require('http-proxy-middleware')
+const { createProxyMiddleware } = require('http-proxy-middleware');
2
+
3
const express = require('express')
4
const router = express.Router()
5
@@ -12,7 +13,7 @@ app.use('/', express.static(path))
12
13
app.use('/datasets', express.static(path))
14
app.use('/events', express.static(path))
15
app.use('/lineage/:type/:namespace/:name', express.static(path))
-app.use(proxy('/api/v1', apiOptions))
16
+app.use(createProxyMiddleware('/api/v1', apiOptions))
17
18
router.get('/healthcheck', function (req, res) {
19
res.send('OK')
0 commit comments