feat: 添加学生个人中心页面和数据库备份功能

refactor(auth): 重构认证模块适配Bootstrap 5样式
feat(controller): 在登录响应中返回用户对象
feat(server): 添加学生个人中心路由
refactor(models): 重构学生和成绩模型结构
style: 更新登录和注册页面UI设计
chore: 添加数据库备份脚本和空备份文件
This commit is contained in:
祀梦
2025-12-21 22:34:29 +08:00
parent b9a975004b
commit e5a2a9d042
16 changed files with 1834 additions and 1651 deletions

View File

@@ -96,6 +96,9 @@ app.get('/dashboard', requirePageAuth, (req, res) => {
app.get('/student/dashboard', requirePageAuth, requirePageRole(['student']), (req, res) => {
res.sendFile(path.join(__dirname, '../frontend/views/student/dashboard.html'));
});
app.get('/student/profile', requirePageAuth, requirePageRole(['student']), (req, res) => {
res.sendFile(path.join(__dirname, '../frontend/views/student/profile.html'));
});
// Teacher Pages
const teacherPageRouter = express.Router();