tellform/app/controllers/core.server.controller.js

18 lines
377 B
JavaScript
Raw Normal View History

2015-06-29 22:51:29 +00:00
'use strict';
2015-09-12 20:37:41 +00:00
// var raven = require('raven');
var config = require('../../config/config');
2015-09-12 20:37:41 +00:00
// var client = new raven.Client(config.DSN);
2015-06-29 22:51:29 +00:00
/**
* Module dependencies.
*/
exports.index = function(req, res) {
// next( throw new Error('Hello, world!'));
2015-08-07 21:02:44 +00:00
// client.captureMessage('Rendering index.html');
2015-06-29 22:51:29 +00:00
res.render('index', {
user: req.user || null,
request: req
});
};