summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/mock/server.js
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-09-09 17:58:37 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-09-09 17:59:14 +0800
commit84cbc5952d84789ca612602794c37b7205c83ac1 (patch)
tree9128be09df2d64745dfa116d8f459002d046f54d /usecaseui-portal/src/app/mock/server.js
parented3a07f731f0c6f70234ca107ac46f44ec538faf (diff)
feat: modify local request method
Change-Id: Icb79c5c24e74025eb8f3ca706905f1aead5547fd Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/mock/server.js')
-rw-r--r--usecaseui-portal/src/app/mock/server.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/mock/server.js b/usecaseui-portal/src/app/mock/server.js
index f0c46fb3..726992d5 100644
--- a/usecaseui-portal/src/app/mock/server.js
+++ b/usecaseui-portal/src/app/mock/server.js
@@ -21,6 +21,10 @@ const customersRouters = require('./routes');
// Set default middlewares (logger, static, cors and no-cache)
server.use(middlewares);
+server.use((requset,response,next) => {
+ requset.method = 'GET';
+ next()
+})
// Get mock data
const fs = require('fs');