Added project view pagae
This commit is contained in:
1 parent
ecc48226a7
commit
e5602e660d
3 files changed
+28
No files matched your search
@@ -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