{"size": 319, "ext": "js", "max_stars_repo_path": "ssr/my-blog/service/src/routes/book.js", "max_stars_repo_name": "lcxhxf/fullstack_huoshan", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ssr/my-blog/service/src/routes/book.js", "max_issues_repo_name": "lcxhxf/fullstack_huoshan", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ssr/my-blog/service/src/routes/book.js", "max_forks_repo_name": "lcxhxf/fullstack_huoshan", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.2666666667, "max_line_length": 42, "alphanum_fraction": 0.6081504702}
// RESTFUL ?
//     接口设计风格 设计风格
//     GET  /book
//         /book/: id
//     请求书的接口

//     POST /book
const router = require('koa-router')()
const book = require('../controller/book')

router.get('/book/list', book.getList)
router.get('/bool/:id', book.getOne)
router.post('/book', book.add)

module.exports = router