maubot/maubot/management/frontend/src/setupProxy.js

7 lines
256 B
JavaScript
Raw Normal View History

2018-11-11 18:10:48 +00:00
const proxy = require("http-proxy-middleware")
module.exports = function(app) {
app.use(proxy("/_matrix/maubot/v1", { target: "http://localhost:29316" }))
app.use(proxy("/_matrix/maubot/v1/logs", { target: "http://localhost:29316", ws: true }))
}