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.
12 lines
282 B
12 lines
282 B
export default function (req,res) {
|
|
// req 是 Node.js http request 对象
|
|
console.log(req,res)
|
|
ctx.body={
|
|
code:200
|
|
}
|
|
//next是一个调用下一个中间件的函数
|
|
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
|
|
// next()
|
|
}
|
|
|
|
|
|
|