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