From f01c230f311777e772435a7e125ebbc1a40fe387 Mon Sep 17 00:00:00 2001 From: Jonnie Spratley Date: Sat, 10 Jan 2015 16:41:14 -0800 Subject: [PATCH] updated routes --- routes/cms-passport.js | 4 ++-- {www => routes/views}/account.ejs | 0 {www => routes/views}/index.ejs | 0 {www => routes/views}/layout.ejs | 0 {www => routes/views}/login.ejs | 0 {www => routes/views}/main.css | 0 {www => routes/views}/register.ejs | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename {www => routes/views}/account.ejs (100%) rename {www => routes/views}/index.ejs (100%) rename {www => routes/views}/layout.ejs (100%) rename {www => routes/views}/login.ejs (100%) rename {www => routes/views}/main.css (100%) rename {www => routes/views}/register.ejs (100%) diff --git a/routes/cms-passport.js b/routes/cms-passport.js index 4778e30..d4b926c 100644 --- a/routes/cms-passport.js +++ b/routes/cms-passport.js @@ -178,8 +178,8 @@ var cmsPassport = function(config, app) { * TODO: Handle configuring passport * */ - app.use(express.static(path.resolve(config.publicDir))); - app.set('views', path.resolve(config.publicDir)); + app.use(express.static(path.resolve(__dirname + path.sep + 'views'))); + app.set('views', path.resolve(__dirname + path.sep + 'views')); app.set('view engine', 'ejs'); app.engine('ejs', require('ejs-locals')); diff --git a/www/account.ejs b/routes/views/account.ejs similarity index 100% rename from www/account.ejs rename to routes/views/account.ejs diff --git a/www/index.ejs b/routes/views/index.ejs similarity index 100% rename from www/index.ejs rename to routes/views/index.ejs diff --git a/www/layout.ejs b/routes/views/layout.ejs similarity index 100% rename from www/layout.ejs rename to routes/views/layout.ejs diff --git a/www/login.ejs b/routes/views/login.ejs similarity index 100% rename from www/login.ejs rename to routes/views/login.ejs diff --git a/www/main.css b/routes/views/main.css similarity index 100% rename from www/main.css rename to routes/views/main.css diff --git a/www/register.ejs b/routes/views/register.ejs similarity index 100% rename from www/register.ejs rename to routes/views/register.ejs