yapi/server/middleware/userauth.js

6 lines
195 B
JavaScript
Raw Normal View History

module.exports = async (ctx, next) => {
let path = ctx.path;
2017-07-27 19:49:26 +08:00
console.log(path); // eslint-disable-line
console.log(ctx.hostname); // eslint-disable-line
if (next) await next();
};