This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
SA3/hw5/Claudio_Maggioni/routes/root/router.js

14 lines
295 B
JavaScript
Raw Normal View History

/** @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;