From 4adb17541a43b5a011e20fe8c03320e88cc462a6 Mon Sep 17 00:00:00 2001 From: zeot Date: Sun, 2 Sep 2018 23:44:59 +0300 Subject: [PATCH] Proxy to dev api --- front/server/bin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/server/bin.js b/front/server/bin.js index 27a37e1..8550e29 100644 --- a/front/server/bin.js +++ b/front/server/bin.js @@ -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())