Added project view pagae
This commit is contained in:
@ -13,6 +13,18 @@ exports.getList = async function(req, res) {
|
||||
});
|
||||
};
|
||||
|
||||
// GET /project/:project_id - view information about a project
|
||||
exports.getView = async function(req, res) {
|
||||
var project = await Project.findAll({
|
||||
where: {
|
||||
id: req.params.project_id
|
||||
}
|
||||
});
|
||||
res.render('project/view', {
|
||||
project: project[0]
|
||||
});
|
||||
};
|
||||
|
||||
// GET /project/add - add a new project
|
||||
exports.getAdd = async function(req, res) {
|
||||
res.render('project/add');
|
||||
|
Reference in New Issue
Block a user