diff options
author | Tao Shen <shentao@chinamobile.com> | 2019-09-10 08:15:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-10 08:15:25 +0000 |
commit | 01a1e0a88b982e485a68c911a483c3643594ed10 (patch) | |
tree | 939028bc6f2d1529c3e4a7a3fe44ee2731d350fa /usecaseui-portal | |
parent | 11513d8eb65642758ee8dd794342b2f65daae482 (diff) | |
parent | 84cbc5952d84789ca612602794c37b7205c83ac1 (diff) |
Merge "feat: modify local request method"
Diffstat (limited to 'usecaseui-portal')
-rw-r--r-- | usecaseui-portal/src/app/mock/server.js | 4 |
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'); |