forked from UKSOURCE/cms.hailearning.edu.vn
first commit
This commit is contained in:
17
controllers/dashboardController.js
Normal file
17
controllers/dashboardController.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const { readJsonFile } = require('../utils/jsonHelper');
|
||||
|
||||
// Hiển thị dashboard
|
||||
exports.getDashboard = async (req, res) => {
|
||||
try {
|
||||
res.render('admin/dashboard', {
|
||||
title: 'Dashboard',
|
||||
user: req.session.user
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
res.render('admin/dashboard', {
|
||||
title: 'Dashboard',
|
||||
user: req.session.user
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user