1
1
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:
zeot 2018-09-02 23:44:59 +03:00
parent 201dac779a
commit 4adb17541a

View File

@ -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())