Closed codinfox closed 9 years ago
把验证登陆的逻辑重新整理到ensure-authenticated模块当中,从index.js当中剥离出来,同时使用app.use()避免多次对ensureAuthenticated的调用。
app.use()
ensureAuthenticated
把验证登陆的逻辑重新整理到ensure-authenticated模块当中,从index.js当中剥离出来,同时使用
app.use()
避免多次对ensureAuthenticated
的调用。