14 lines
295 B
JavaScript
14 lines
295 B
JavaScript
|
/** @module root/router */
|
||
|
'use strict';
|
||
|
// vim: set ts=2 sw=2 et tw=80:
|
||
|
|
||
|
const express = require('express');
|
||
|
const router = express.Router();
|
||
|
|
||
|
router.get('/', (req, res) => {
|
||
|
res.render('index.dust', { favs: req.app.locals.favourites });
|
||
|
});
|
||
|
|
||
|
/** router for /root */
|
||
|
module.exports = router;
|