mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 23:53:29 +02:00
Make auth URLs friendlier to load balancers and allow partials to be loaded as well.
This commit is contained in:
@@ -50,7 +50,7 @@ module.exports = function(options) {
|
||||
next()
|
||||
})
|
||||
|
||||
app.get('/partials/:name', function(req, res) {
|
||||
app.get('/static/auth/ldap/views/partials/:name.html', function(req, res) {
|
||||
var whitelist = {
|
||||
'signin': true
|
||||
}
|
||||
@@ -64,6 +64,10 @@ module.exports = function(options) {
|
||||
})
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.redirect('/auth/ldap')
|
||||
})
|
||||
|
||||
app.get('/auth/ldap', function(req, res) {
|
||||
res.render('index')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user