diff --git a/routes/list.js b/routes/list.js index c899cfe..f822610 100644 --- a/routes/list.js +++ b/routes/list.js @@ -4,18 +4,7 @@ var router = express.Router(); /* GET home page. */ router.get('/', function (req, res, next) { - - data = { - title: 'Movies', - scripts: [] - }; - - const f = fs.readdirSync('./public/assets/list/'); - f.forEach(file => { - data.scripts.push("/assets/list/" + file); - }); - - res.render('list', data); + res.render('list', {title: 'List'}); }); module.exports = router; \ No newline at end of file diff --git a/views/list.hbs b/views/list.hbs index 36e04ac..637669c 100644 --- a/views/list.hbs +++ b/views/list.hbs @@ -1,8 +1,4 @@ - - -{{#each scripts}} - -{{/each}} +