mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
Merge branch 'dev' into dev-assert
This commit is contained in:
commit
9bb4b52faa
@ -21,8 +21,8 @@ let indexFile = process.argv[2] === 'dev' ? 'dev.html' : 'index.html';
|
||||
|
||||
const app = websockify(new Koa());
|
||||
yapi.app = app;
|
||||
app.use(mockServer);
|
||||
app.use(bodyParser({multipart: true}));
|
||||
app.use(mockServer);
|
||||
app.use(router.routes());
|
||||
app.use(router.allowedMethods());
|
||||
|
||||
|
@ -145,6 +145,7 @@ module.exports = async (ctx, next) => {
|
||||
try{
|
||||
res = Mock.mock(res);
|
||||
}catch(e){
|
||||
yapi.commons.log(e, 'error')
|
||||
res = res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user