mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Rename auth/mock resources to auth-mock for now.
This commit is contained in:
parent
a2750d3013
commit
fb4710e2bf
10 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ module.exports = function(options) {
|
||||||
, app = express()
|
, app = express()
|
||||||
|
|
||||||
app.set('view engine', 'jade')
|
app.set('view engine', 'jade')
|
||||||
app.set('views', pathutil.resource('auth/views'))
|
app.set('views', pathutil.resource('auth-mock/views'))
|
||||||
app.set('strict routing', true)
|
app.set('strict routing', true)
|
||||||
app.set('case sensitive routing', true)
|
app.set('case sensitive routing', true)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ module.exports = function(options) {
|
||||||
app.use(express.csrf())
|
app.use(express.csrf())
|
||||||
app.use(validator())
|
app.use(validator())
|
||||||
app.use('/static/lib', express.static(pathutil.resource('lib')))
|
app.use('/static/lib', express.static(pathutil.resource('lib')))
|
||||||
app.use('/static', express.static(pathutil.resource('auth')))
|
app.use('/static', express.static(pathutil.resource('auth-mock')))
|
||||||
|
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
res.cookie('XSRF-TOKEN', req.csrfToken());
|
res.cookie('XSRF-TOKEN', req.csrfToken());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue