mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-25 02:32:17 -04:00
11 lines
233 B
JavaScript
11 lines
233 B
JavaScript
const { createProxyMiddleware } = require('http-proxy-middleware');
|
|
|
|
module.exports = function(app) {
|
|
app.use(
|
|
'/api',
|
|
createProxyMiddleware({
|
|
target: 'http://localhost:9090',
|
|
changeOrigin: true,
|
|
})
|
|
);
|
|
};
|