fork from bc4552c5a8
This commit is contained in:
11
exts/yapi-plugin-export-swagger2-data/client.js
Normal file
11
exts/yapi-plugin-export-swagger2-data/client.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function exportData(exportDataModule, pid) {
|
||||
exportDataModule.swaggerjson = {
|
||||
name: 'swaggerjson',
|
||||
route: `/api/plugin/exportSwagger?type=OpenAPIV2&pid=${pid}`,
|
||||
desc: '导出项目接口文档为(Swagger 2.0)Json文件'
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = function() {
|
||||
this.bindHook('export_data', exportData);
|
||||
};
|
||||
Reference in New Issue
Block a user