a tool to auto map your routers folder and router for koa
npm install koa-auto-routes --save
在koa工程目录下的入口文件里
var autoRoutes=require('koa-auto-routes')
autoRoutes(app,'routes目录路径')
然后,koa-auto-routes就会自动帮你生成路由 ^.^
注意:index.js对应默认路径'/'
node.js V4+