From fb4710e2bfd7dd32dbc7945450bf3c2717d3584c Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Thu, 30 Jan 2014 21:57:29 +0900 Subject: [PATCH] Rename auth/mock resources to auth-mock for now. --- lib/roles/auth/mock.js | 4 ++-- res/{auth => auth-mock}/scripts/app.js | 0 res/{auth => auth-mock}/scripts/bootstrap.js | 0 res/{auth => auth-mock}/scripts/controllers/SignInCtrl.js | 0 res/{auth => auth-mock}/scripts/controllers/index.js | 0 res/{auth => auth-mock}/scripts/controllers/module.js | 0 res/{auth => auth-mock}/scripts/main.js | 0 res/{auth => auth-mock}/scripts/routes.js | 0 res/{auth => auth-mock}/views/index.jade | 0 res/{auth => auth-mock}/views/partials/signin.jade | 0 10 files changed, 2 insertions(+), 2 deletions(-) rename res/{auth => auth-mock}/scripts/app.js (100%) rename res/{auth => auth-mock}/scripts/bootstrap.js (100%) rename res/{auth => auth-mock}/scripts/controllers/SignInCtrl.js (100%) rename res/{auth => auth-mock}/scripts/controllers/index.js (100%) rename res/{auth => auth-mock}/scripts/controllers/module.js (100%) rename res/{auth => auth-mock}/scripts/main.js (100%) rename res/{auth => auth-mock}/scripts/routes.js (100%) rename res/{auth => auth-mock}/views/index.jade (100%) rename res/{auth => auth-mock}/views/partials/signin.jade (100%) diff --git a/lib/roles/auth/mock.js b/lib/roles/auth/mock.js index ea1b40a8..fda23047 100644 --- a/lib/roles/auth/mock.js +++ b/lib/roles/auth/mock.js @@ -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()); diff --git a/res/auth/scripts/app.js b/res/auth-mock/scripts/app.js similarity index 100% rename from res/auth/scripts/app.js rename to res/auth-mock/scripts/app.js diff --git a/res/auth/scripts/bootstrap.js b/res/auth-mock/scripts/bootstrap.js similarity index 100% rename from res/auth/scripts/bootstrap.js rename to res/auth-mock/scripts/bootstrap.js diff --git a/res/auth/scripts/controllers/SignInCtrl.js b/res/auth-mock/scripts/controllers/SignInCtrl.js similarity index 100% rename from res/auth/scripts/controllers/SignInCtrl.js rename to res/auth-mock/scripts/controllers/SignInCtrl.js diff --git a/res/auth/scripts/controllers/index.js b/res/auth-mock/scripts/controllers/index.js similarity index 100% rename from res/auth/scripts/controllers/index.js rename to res/auth-mock/scripts/controllers/index.js diff --git a/res/auth/scripts/controllers/module.js b/res/auth-mock/scripts/controllers/module.js similarity index 100% rename from res/auth/scripts/controllers/module.js rename to res/auth-mock/scripts/controllers/module.js diff --git a/res/auth/scripts/main.js b/res/auth-mock/scripts/main.js similarity index 100% rename from res/auth/scripts/main.js rename to res/auth-mock/scripts/main.js diff --git a/res/auth/scripts/routes.js b/res/auth-mock/scripts/routes.js similarity index 100% rename from res/auth/scripts/routes.js rename to res/auth-mock/scripts/routes.js diff --git a/res/auth/views/index.jade b/res/auth-mock/views/index.jade similarity index 100% rename from res/auth/views/index.jade rename to res/auth-mock/views/index.jade diff --git a/res/auth/views/partials/signin.jade b/res/auth-mock/views/partials/signin.jade similarity index 100% rename from res/auth/views/partials/signin.jade rename to res/auth-mock/views/partials/signin.jade