Files
yapi/exts/yapi-plugin-export-swagger2-data/server.js
2024-03-01 20:28:14 +08:00

12 lines
323 B
JavaScript

const exportSwaggerController = require('./controller');
module.exports = function(){
this.bindHook('add_router', function(addRouter){
addRouter({
controller: exportSwaggerController,
method: 'get',
path: 'exportSwagger',
action: 'exportData'
})
})
}