diff options
-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'); |