16 lines
219 B
JavaScript
16 lines
219 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
'/': {
|
|
// Get homepage
|
|
get: (req, res) => {
|
|
req.negotiate({
|
|
html: () => {
|
|
return res.render('index', {
|
|
title: 'Blog test page',
|
|
});
|
|
},
|
|
});
|
|
},
|
|
},
|
|
}; |