mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Remove partials, not needed anymore with Webpack bundling.
This commit is contained in:
parent
9f627cb129
commit
5255b32f09
2 changed files with 0 additions and 26 deletions
|
@ -50,19 +50,6 @@ module.exports = function(options) {
|
||||||
next()
|
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) {
|
app.get('/', function(req, res) {
|
||||||
res.redirect('/auth/ldap/')
|
res.redirect('/auth/ldap/')
|
||||||
})
|
})
|
||||||
|
|
|
@ -49,19 +49,6 @@ module.exports = function(options) {
|
||||||
next()
|
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) {
|
app.get('/', function(req, res) {
|
||||||
res.redirect('/auth/mock/')
|
res.redirect('/auth/mock/')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue