12345678910111213141516171819202122 |
- let Watch = require('../models/Watch');
- /**
- * GET /
- */
- exports.index = function(req, res) {
- Watch.find({}, null, {sort: '-year'}, function(err, watch){
- if(err){
- console.log(err);
- } else {
- res.render('list', {
- title:'Obras Pendentes',
- watch: watch
- });
- }
- });
- };
|