UNPKG

linear

Version:

A simple setup micro-forum built in Node.js with Express and MongoDB.

21 lines (13 loc) 411 B
const profileController = require('../controllers/profile'); module.exports = router => { router.get('/:id', (req, res, next) => { profileController.show(req.params.id).then(profile => { res.render('profile', { 'page_title': req.__('Profile'), profile, 'style': 'profile' }); }) .catch(next); }); };