Merge branch 'xuebaoxin' of pplokijuhyg/blog-server into master
This commit is contained in:
commit
f06bc3cdb0
5
app.js
5
app.js
@ -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("执行")
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user