yapi/server/middleware/userauth.js

6 lines
145 B
JavaScript

module.exports = async (ctx, next) => {
let path = ctx.path;
console.log(path)
console.log(ctx.hostname)
if(next) await next();
}