Realized that the main app doesn't use partials anymore, which makes template customization easier.

This commit is contained in:
Simo Kinnunen
2014-07-03 18:45:58 +09:00
parent 720292ae3c
commit a9d9f61615

View File

@@ -115,21 +115,6 @@ module.exports = function(options) {
app.use(csrf())
app.use(validator())
app.get('/partials/*', function(req, res) {
var whitelist = {
'devices/index': true
, 'devices/control': true
, 'devices/screen': true
}
if (whitelist.hasOwnProperty(req.params[0])) {
res.render(path.join('partials', req.params[0]))
}
else {
res.send(404)
}
})
app.get('/', function(req, res) {
res.render('index')
})