新增Postman导出
This commit is contained in:
12
exts/yapi-plugin-export-postman/server.js
Normal file
12
exts/yapi-plugin-export-postman/server.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const exportSwaggerController = require('./controller');
|
||||
|
||||
module.exports = function(){
|
||||
this.bindHook('add_router', function(addRouter){
|
||||
addRouter({
|
||||
controller: exportSwaggerController,
|
||||
method: 'get',
|
||||
path: 'exportPostman',
|
||||
action: 'exportData'
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user