mirror of
https://github.com/aelve/guide.git
synced 2024-12-29 00:24:01 +03:00
Proxy to dev api
This commit is contained in:
parent
201dac779a
commit
4adb17541a
@ -13,9 +13,9 @@ const app = new Koa()
|
||||
app.use(proxy({
|
||||
host: config.apiUrl,
|
||||
match: /^\/api\//,
|
||||
// map: function (path) {
|
||||
// return path.replace('/api', '')
|
||||
// }
|
||||
map: function (path) {
|
||||
return path.replace('/api', '')
|
||||
}
|
||||
}))
|
||||
app.use(bodyparser())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user