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

20 lines
346 B
JavaScript
Raw Normal View History

2016-02-19 12:58:16 -05:00
'use strict';
2016-02-24 14:09:22 -05:00
const container = require('../Container');
const hasher = container.get('helpers/password-hash');
2016-02-19 12:58:16 -05:00
module.exports = {
'/': {
// Get homepage
get: (req, res) => {
2016-02-19 16:23:00 -05:00
req.negotiate({
html: () => {
return res.render('index', {
2016-02-24 14:09:22 -05:00
theme: 'github-gist',
2016-02-19 16:23:00 -05:00
title: 'Blog test page',
});
},
2016-02-19 12:58:16 -05:00
});
},
},
};