Skip to content

Commit

Permalink
Merge branch 'master' into nhat
Browse files Browse the repository at this point in the history
  • Loading branch information
nhattpn authored Apr 23, 2024
2 parents 580caf3 + ea20a2f commit 39366de
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions qlsv_be/controllers/admin/student.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ const addStudent = async (req, res) => {
}
};



// Delete a student
const deleteStudent = async (req, res) => {
const { mssv } = req.params;
Expand Down
2 changes: 0 additions & 2 deletions qlsv_be/controllers/admin/teacher.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ const addTeacher = async (req, res) => {
res.status(400).send(error.message);
}
};


const deleteTeacher = async (req, res) => {
const { msgv } = req.params;

Expand Down
2 changes: 1 addition & 1 deletion qlsv_be/controllers/users/student.controller.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const bcrypt = require('bcrypt');
const jwt = require('jsonwebtoken');
const { validationResult } = require('express-validator');
const studentModel = require('../../models/student.model');
const teacherModel = require('../../models/teacher.model');

const login = async (req, res) => {
const errors = validationResult(req);
Expand Down
1 change: 0 additions & 1 deletion qlsv_be/models/student.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const studentSchema = new mongoose.Schema({
type: Boolean,
default: false
},

// Training information
training_info:{
namNhapHoc: String,
Expand Down
5 changes: 4 additions & 1 deletion qlsv_be/routes/users/studentdashboard.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const tkb = require('../../controllers/users/tkb.controller');
const bangdiem = require('../../controllers/users/bangdiem.controller');
const lichthi = require('../../controllers/users/lichthi.controller');


router.use('/thongtinsinhvien', thongtinSinhVien.dashboard);
router.use('/thongtindaotao', thongtinDaoTao.dashboard);
router.use('/tkb', tkb.dashboard);
Expand All @@ -17,4 +16,8 @@ router.use('/bangdiem', bangdiem.dashboard);
router.get('/lichthi', lichthi.getAllLichThi);
router.get('/lichthi/:courseCode', lichthi.getLichThi);

router.use('/tkb',tkb.dashboard);
router.get('/lichthi',lichthi.getAllLichThi);
router.get('/lichthi/:courseCode',lichthi.getLichThi);
router.use('/bangdiem',bangdiem.dashboard);
module.exports = router;
1 change: 0 additions & 1 deletion qlsv_be/routes/users/teacher.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ router.post('/login', [

router.use('/dashboard', authenticate, teacherDashboard);


module.exports = router;

0 comments on commit 39366de

Please sign in to comment.