UNPKG

@yuanjinlin/gen-api

Version:

轻量化简易一键生成在线文档api接口,告别人力的copy

17 lines (15 loc) 383 B
const path = require("path"); require("./utils/Generator"); const Yapi = require(path.join(__dirname,'core/yapi')); module.exports = class GenApi { constructor() {} static createGenApi(config) { this.genApiName = config.genApiName; switch (this.genApiName) { case "yapi": return new Yapi(config); default: break; } } };