2 changed files with 17 additions and 12 deletions
@ -0,0 +1,12 @@ |
|||||
|
const proxy = require('http-proxy-middleware') |
||||
|
const pkg = require("../package.json") |
||||
|
|
||||
|
module.exports = app => { |
||||
|
app.use(proxy('/api', { |
||||
|
target: pkg.proxy |
||||
|
})) |
||||
|
|
||||
|
app.use(proxy('/d', { |
||||
|
target: pkg.proxy |
||||
|
})) |
||||
|
} |
||||
Loading…
Reference in new issue