You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
273 B
14 lines
273 B
5 years ago
|
/**
|
||
|
* 整合所有子路由
|
||
|
*/
|
||
|
|
||
|
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
|