auth.js 298 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 /* * @Author: limin * @Date: 2019-11-15 10:46:30 * @Last Modified by: limin * @Last Modified time: 2019-11-15 11:07:59 */ module.exports = (options,app)=>{ return async function auth (ctx, next){ ctx.state.csrf = ctx.csrf; console.log(1111); await next() } }