yapi/exts/yapi-plugin-export-markdown/server.js
2017-11-01 14:06:49 +08:00

16 lines
346 B
JavaScript

const controller = require('./controller');
// const mongoose = require('mongoose');
// const _ = require('underscore');
module.exports = function(){
this.bindHook('add_router', function(addRouter){
addRouter({
controller: controller,
method: 'get',
path: 'export/markdown',
action: 'exportMarkdown'
})
})
}