yapi/exts/yapi-plugin-export-data/server.js
2017-11-02 16:16:00 +08:00

16 lines
333 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',
action: 'exportData'
})
})
}