aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-23 00:21:08 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-23 00:21:08 +0000
commitce4ced8bdc84d7e058f71e96cd08396e8207b6d4 (patch)
tree6f34f1c45b9164d330d70db13d230223a060310c /app.js
parent04e774a748f00993d254671e068fcb58ba567da1 (diff)
parentc17afa29125f162df7d47e36cee55ec7cdbee9de (diff)
Resolved conflict
Diffstat (limited to 'app.js')
-rw-r--r--app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index a96a932..9e96a9f 100644
--- a/app.js
+++ b/app.js
@@ -13,6 +13,7 @@ var flash = require('connect-flash');
var routes = require('./routes/index');
var userRoutes = require('./routes/user');
+var adminRoutes = require('./routes/admin');
var app = express();
// Templating engine, we are using handlebars
@@ -40,7 +41,6 @@ require('./config/passport'); // simply need to load it
/*LOADS ALL STATIC FILES FROM THE DIRECTORY __dirname*/
app.use(express.static(__dirname));
-
// Needed to style the header based on the whether the user is signed in or not
// Gives errors for admin - need to figure out
app.use(function(req, res, next) {
@@ -50,6 +50,7 @@ app.use(function(req, res, next) {
// Allows us to customize express routing
// in a separate file.
+app.use('/admin', adminRoutes);
app.use('/user', userRoutes);
app.use('/', routes);