tsviewer/app.js

14 lines
281 B
JavaScript
Raw Normal View History

2019-01-11 10:50:45 +00:00
var express = require('express');
var exphbs = require('express-handlebars');
var app = express();
app.engine('handlebars', exphbs({defaultLayout: 'main'}));
app.set('view engine', 'handlebars');
app.get('/', function (req, res) {
res.render('home');
});
app.listen(3000);