安装koa-router中间件 npm install --save koa-router. 新建routes文件夹放置index.js 和api.js(分别为两个路由);. 在index.js中引用koa-router.
確定! 回上一頁