From 84cbc5952d84789ca612602794c37b7205c83ac1 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Mon, 9 Sep 2019 17:58:37 +0800 Subject: feat: modify local request method Change-Id: Icb79c5c24e74025eb8f3ca706905f1aead5547fd Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- usecaseui-portal/src/app/mock/server.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usecaseui-portal/src/app') 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'); -- cgit 1.2.3-korg