UNPKG

yapi-vendor

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