Commit 40d82e3d authored by a001188's avatar a001188
Browse files

Some functions work

parent 7c0ac8b0
......@@ -14,7 +14,7 @@ var organisation = require('./routes/organisation');
var structure = require('./routes/structure');
var users = require('./routes/users');
var app = express();
const winston = require('winston')
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'pug');
......
......@@ -9,6 +9,9 @@ const connectionString = process.env.DATABASE_URL || 'postgres://jasper:a001188@
/* GET home page. */
router.get('/', function(req, res, next) {
winston.log('info', 'Hello log files!', {
someKey: 'some-value'
});
res.render('index', { title: 'Hem'});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment