3d-interface/controllers/index/index.js

11 lines
236 B
JavaScript

var pejs = require('pejs');
views = pejs();
module.exports.index = function(req, res) {
res.setHeader('Content-Type', 'text/html');
views.render('index', res.locals, function(err, result) {
res.send(result);
});
}