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') })