feat: 添加学生个人中心页面和数据库备份功能
refactor(auth): 重构认证模块适配Bootstrap 5样式 feat(controller): 在登录响应中返回用户对象 feat(server): 添加学生个人中心路由 refactor(models): 重构学生和成绩模型结构 style: 更新登录和注册页面UI设计 chore: 添加数据库备份脚本和空备份文件
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user