停止路由
This commit is contained in:
18
app.js
18
app.js
@@ -46,15 +46,15 @@ app.use(async (ctx, next) => {
|
||||
|
||||
await next();
|
||||
})
|
||||
app.use(async (ctx,next)=>{
|
||||
// await next();
|
||||
console.log(ctx.url)
|
||||
// console.time("asd")
|
||||
// ctx.response.body = {a:1};
|
||||
await next()
|
||||
// console.log("执行")
|
||||
// console.timeEnd("asd")
|
||||
});
|
||||
// app.use(async (ctx,next)=>{
|
||||
// // await next();
|
||||
// // console.log(ctx.url)
|
||||
// // console.time("asd")
|
||||
// // ctx.response.body = {a:1};
|
||||
// await next()
|
||||
// // console.log("执行")
|
||||
// // console.timeEnd("asd")
|
||||
// });
|
||||
|
||||
|
||||
const bodyParser = require('koa-bodyparser');
|
||||
|
||||
Reference in New Issue
Block a user