mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-28 22:22:45 +00:00
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const proxy = require("http-proxy-middleware");
|
|
module.exports = function (app) {
|
|
["/api","/custom","/f"].map(p=>app.use(
|
|
p,
|
|
proxy({
|
|
target: "http://localhost:5212",
|
|
changeOrigin: true,
|
|
})
|
|
))
|
|
};
|