Archived
Site.getAll created, basic Index generating
This commit is contained in:
1 parent
2ee5504efc
commit
78ae7f3a03
5 files changed
+28
-3
No files matched your search
@@ -11,5 +11,11 @@ module.exports = {
|
||||
res.render('site', { title: site.site, site: site });
|
||||
}
|
||||
});
|
||||
},
|
||||
getAll: function(req, res){
|
||||
Site.getAll(function(err, sites){
|
||||
if(err) throw err;
|
||||
res.render('index', { title: "Home", sites: sites });
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user