yapi/server/middleware/userauth.js

6 lines
145 B
JavaScript
Raw Normal View History

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