setupProxy.js 160 B

1
  1. const proxy=require("http-proxy-middleware");module.exports=function(a){a.use(proxy("/api",{target:"http://localhost:5000/",ws:!0,pathRewrite:{"^/api":"/"}}))};