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

'use strict';
const container = require('../Container');
const hasher = container.get('helpers/password-hash');
module.exports = {
'/': {
// Get homepage
get: (req, res) => {
req.negotiate({
html: () => {
return res.render('index', {
theme: 'github-gist',
title: 'Blog test page',
});
},
});
},
},
};