diff options
Diffstat (limited to 'usecaseui-portal/src/app/mock/server.js')
-rw-r--r-- | usecaseui-portal/src/app/mock/server.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/mock/server.js b/usecaseui-portal/src/app/mock/server.js index 45d6b2b5..2b8f5fe0 100644 --- a/usecaseui-portal/src/app/mock/server.js +++ b/usecaseui-portal/src/app/mock/server.js @@ -1,6 +1,7 @@ const jsonServer = require('json-server'); const server = jsonServer.create(); const middlewares = jsonServer.defaults(); +// const customersRouters = require('./routes'); // Set default middlewares (logger, static, cors and no-cache) server.use(middlewares); @@ -10,7 +11,7 @@ const fs = require('fs'); const path = require('path'); let localJsonDb = {}; //import mock datas -const fakeoriginalData = require('./mock.js'); //import datas created in fakedata.js +const fakeoriginalData = require('./fake/mock.js'); //import datas created in fakedata.js const mockFolder = './src/app/mock/json'; //mock json path folder const filePath = path.resolve(mockFolder); @@ -54,8 +55,6 @@ function fileDisplay(filePath) { }) }) setTimeout(() => { - // console.log(rewriter, "===rewriter", localJsonDb, "===localJsonDb", fileList, "===fileList"); - // console.log(localJsonDb, "===localJsonDb"); serverRewrite(rewriter); runServer(localJsonDb); }, 100) |