1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00

Make auth URLs friendlier to load balancers and allow partials to be loaded as well.

This commit is contained in:
Simo Kinnunen 2014-07-15 20:14:35 +09:00
parent beff3d88f2
commit b19e1784ab
6 changed files with 18 additions and 10 deletions

View file

@ -49,7 +49,7 @@ module.exports = function(options) {
next()
})
app.get('/partials/:name', function(req, res) {
app.get('/static/auth/mock/views/partials/:name.html', function(req, res) {
var whitelist = {
'signin': true
}
@ -63,6 +63,10 @@ module.exports = function(options) {
})
app.get('/', function(req, res) {
res.redirect('/auth/mock')
})
app.get('/auth/mock', function(req, res) {
res.render('index')
})