maubot/maubot/management/frontend/src/setupProxy.js
2018-11-11 20:10:48 +02:00

7 lines
256 B
JavaScript

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 }))
}