diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-23 00:21:08 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-23 00:21:08 +0000 |
| commit | ce4ced8bdc84d7e058f71e96cd08396e8207b6d4 (patch) | |
| tree | 6f34f1c45b9164d330d70db13d230223a060310c /app.js | |
| parent | 04e774a748f00993d254671e068fcb58ba567da1 (diff) | |
| parent | c17afa29125f162df7d47e36cee55ec7cdbee9de (diff) | |
Resolved conflict
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
