// 登录
app.get(`/business-login`, function(req, res){
if (!app.locals.isLogin) {
res.redirect('/')
}
res.render(`business-login.html`);
});
// 申请入驻
app.get(`/business-apply`, function(req, res){
if (!app.locals.isLogin) {
res.redirect('/')
}
res.render(`business-apply.html`);
});
// 审核中
app.get(`/business-review`, function(req, res){
if (!app.locals.isLogin) {
res.redirect('/')
}
res.render(`business-review.html`);
});
上面写了三个在判断是否登录的,如何进行简写啊?