This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ProgBlog/app/controllers/index.js

16 lines
219 B
JavaScript
Raw Normal View History

2016-02-19 12:58:16 -05:00
'use strict';
module.exports = {
'/': {
// Get homepage
get: (req, res) => {
2016-02-19 16:23:00 -05:00
req.negotiate({
html: () => {
return res.render('index', {
title: 'Blog test page',
});
},
2016-02-19 12:58:16 -05:00
});
},
},
};