You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
334 B
13 lines
334 B
export default function (req,res,next) {
|
|
// req 是 Node.js http request 对象
|
|
// console.log(req.ctx.body={code:200})
|
|
// console.log(res)
|
|
// ctx.body={
|
|
// code:200
|
|
// }
|
|
//next是一个调用下一个中间件的函数
|
|
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
|
|
next()
|
|
}
|
|
|
|
|
|
|