This repository has been archived on 2025-04-15. You can view files and clone it, but cannot push or open issues or pull requests.

13 lines
341 B
JavaScript

var Site = require('../model/Site');
module.exports = {
// Find site by ID export
findById: function(req, res){
Site.findById(req.params.id, function(err, site){
if(err) throw err;
console.log("Site->Controller: findById queried: " + site.site);
res.render('site', { title: site.site, site: site });
});
}
}