Merge branch 'xuebaoxin' of pplokijuhyg/blog-server into master

This commit is contained in:
pplokijuhyg 2019-11-12 16:50:41 +08:00
commit f06bc3cdb0

5
app.js
View File

@ -5,8 +5,9 @@ const requter = require("./bin/router.js");
const app = new Koa();
app.use(async (ctx,next)=>{
// await next();
ctx.response.body = {a:1};
// next()
console.log(ctx.url)
// ctx.response.body = {a:1};
next()
console.log("执行")
});