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(); const app = new Koa();
app.use(async (ctx,next)=>{ app.use(async (ctx,next)=>{
// await next(); // await next();
ctx.response.body = {a:1}; console.log(ctx.url)
// next() // ctx.response.body = {a:1};
next()
console.log("执行") console.log("执行")
}); });