refactor: 删除未使用的身份验证中间件
- 移除了 LoginUtil.js 文件中的 authenticateSeesion 方法 - 该方法已不再被任何地方调用,删除以简化代码库
This commit is contained in:
parent
0b6340dca4
commit
511a1c2778
@ -1,7 +0,0 @@
|
||||
exports.authenticateSeesion = async (req, res, next) => {
|
||||
if (req.session.user) {
|
||||
next()
|
||||
} else {
|
||||
res.status(401).json({ error: 'Unauthorized' })
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user