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