简介koa需要搭配中间件来做接口更方便,使用Koa-body&Koa-router使用koa2创建接口,处理post请求constkoa=require("koa")constRouter=require('koa-router')cons…