mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
13 lines
256 B
JavaScript
13 lines
256 B
JavaScript
const { createProxyMiddleware } = require('http-proxy-middleware')
|
|
|
|
module.exports = function (app) {
|
|
app.use(
|
|
'/rest/*',
|
|
createProxyMiddleware({
|
|
target: 'http://localhost:3080',
|
|
secure: false,
|
|
changeOrigin: true,
|
|
}),
|
|
)
|
|
}
|