/** * 整合所有子路由 */ const router = require('koa-router')() const code = require('./code') const api = require('./api') router.use('/code', code.routes(), code.allowedMethods()) router.use('/api', api.routes(), api.allowedMethods()) module.exports = router