From a9d9f61615b3ccd5de32680ceac94bf1d2a72c46 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Thu, 3 Jul 2014 18:45:58 +0900 Subject: [PATCH] Realized that the main app doesn't use partials anymore, which makes template customization easier. --- lib/roles/app.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/roles/app.js b/lib/roles/app.js index 2b6e1b7c..cb5afbb5 100644 --- a/lib/roles/app.js +++ b/lib/roles/app.js @@ -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') })