Added project view pagae

This commit is contained in:
2023-11-26 02:23:52 -05:00
parent ecc48226a7
commit e5602e660d
3 changed files with 28 additions and 0 deletions

View File

@ -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');