let superMock = require('super-mock-data')
superMock.config({
mockOrigin: 'www.baidu.com',
site: 'pc',
mockUrl: 'http://www.baidu.com?_json=1',
})
app.use('/*', superMock.controler)
let superMock = require('super-mock-data')
superMock.config({
mockPath: path.resolve('./'),
mockOrigin: 'www.baidu.com',
site: 'pc'
})
superMock.requestBefore(({req, res, next}) => {
})
superMock.requestAfter(({req, res, next, response}) => {
})
superMock.renderBefore(({req, res, next, response, mockData, mockPath}) => {
})
superMock.renderAfter(({req, res, next, response, mockData, mockPath}) => {
})
superMock.error(({req, res, next, response, error}) => {
})
app.use('/*', superMock.controler)