yapi/server/middleware/userauth.js
2017-07-27 19:49:26 +08:00

6 lines
195 B
JavaScript

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