refactor: 删除未使用的身份验证中间件

- 移除了 LoginUtil.js 文件中的 authenticateSeesion 方法
- 该方法已不再被任何地方调用,删除以简化代码库
This commit is contained in:
LingandRX 2024-12-24 23:17:13 +08:00
parent 0b6340dca4
commit 511a1c2778

View File

@ -1,7 +0,0 @@
exports.authenticateSeesion = async (req, res, next) => {
if (req.session.user) {
next()
} else {
res.status(401).json({ error: 'Unauthorized' })
}
}