mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
16 lines
333 B
JavaScript
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'
|
|
})
|
|
})
|
|
|
|
} |