mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Ensure that all API calls and static resources are in their own unique paths. This makes it easier to add a load balancer on top of everything.
This commit is contained in:
parent
7da3c91289
commit
1d77d8c97d
34 changed files with 37 additions and 36 deletions
|
@ -29,7 +29,7 @@ module.exports = function(options) {
|
|||
})
|
||||
|
||||
app.set('view engine', 'jade')
|
||||
app.set('views', pathutil.resource('auth-mock/views'))
|
||||
app.set('views', pathutil.resource('auth/mock/views'))
|
||||
app.set('strict routing', true)
|
||||
app.set('case sensitive routing', true)
|
||||
|
||||
|
@ -42,7 +42,7 @@ module.exports = function(options) {
|
|||
app.use(validator())
|
||||
app.use('/static/bower_components',
|
||||
serveStatic(pathutil.resource('bower_components')))
|
||||
app.use('/static', serveStatic(pathutil.resource('auth-mock')))
|
||||
app.use('/static/auth/mock', serveStatic(pathutil.resource('auth/mock')))
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
res.cookie('XSRF-TOKEN', req.csrfToken());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue