mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Rename auth/mock resources to auth-mock for now.
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = function(options) {
|
||||
, app = express()
|
||||
|
||||
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('case sensitive routing', true)
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = function(options) {
|
||||
app.use(express.csrf())
|
||||
app.use(validator())
|
||||
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) {
|
||||
res.cookie('XSRF-TOKEN', req.csrfToken());
|
||||
|
||||
Reference in New Issue
Block a user