mock-route
v1.5.0
Published
generate puer route config
Downloads
19
Readme
mock-route
读取 _mockserver.json(或者.js) 配置文件, 生成 puer 的 route config.
Usage
var mockRoute = require('mock-route');
// read _mockserver.json config file
var mockConfig = mockRoute.getMockConfig('./_mockserver.json');
// or read _mockserver.js config file
// var mockConfig = mockRoute.getMockConfig('./_mockserver.js');
// generate puer route config
var routeConfig = mockRoute.generateRouteConfig(mockConfig);