From 5255b32f09838669d2b9fc16e15ad616d7387958 Mon Sep 17 00:00:00 2001 From: Gunther Brunner Date: Wed, 1 Jul 2015 15:12:56 +0900 Subject: [PATCH] Remove partials, not needed anymore with Webpack bundling. --- lib/units/auth/ldap.js | 13 ------------- lib/units/auth/mock.js | 13 ------------- 2 files changed, 26 deletions(-) diff --git a/lib/units/auth/ldap.js b/lib/units/auth/ldap.js index 222a60cb..209ace6a 100644 --- a/lib/units/auth/ldap.js +++ b/lib/units/auth/ldap.js @@ -50,19 +50,6 @@ module.exports = function(options) { next() }) - app.get('/static/auth/ldap/views/partials/:name.html', function(req, res) { - var whitelist = { - 'signin': true - } - - if (whitelist[req.params.name]) { - res.render('partials/' + req.params.name) - } - else { - res.send(404) - } - }) - app.get('/', function(req, res) { res.redirect('/auth/ldap/') }) diff --git a/lib/units/auth/mock.js b/lib/units/auth/mock.js index 5a421522..5fb77b95 100644 --- a/lib/units/auth/mock.js +++ b/lib/units/auth/mock.js @@ -49,19 +49,6 @@ module.exports = function(options) { next() }) - app.get('/static/auth/mock/views/partials/:name.html', function(req, res) { - var whitelist = { - 'signin': true - } - - if (whitelist[req.params.name]) { - res.render('partials/' + req.params.name) - } - else { - res.send(404) - } - }) - app.get('/', function(req, res) { res.redirect('/auth/mock/') })