aboutsummaryrefslogtreecommitdiff
path: root/routes/admin.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 12:12:29 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 12:12:29 +0000
commit3fe5b3f57ebc7127d4040e28b12c7fb1c3f558d8 (patch)
tree845d496ae0e9ddd3a1d365b82b173ce053f33377 /routes/admin.js
parenta5528ed97fcd7d15c62effda4358ffea176548e0 (diff)
Added comments to index.js
Diffstat (limited to 'routes/admin.js')
-rw-r--r--routes/admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/admin.js b/routes/admin.js
index 77594d5..6518aef 100644
--- a/routes/admin.js
+++ b/routes/admin.js
@@ -34,7 +34,7 @@ app.use(express_validator({
}
}));
-/** Serve the main index.html page */
+/** Serve the main index.hbs page as an admin */
router.get('/', isAdmin, function(req,res){
res.render('admin', {adminPanel: true, csrfToken: req.csrfToken(), success: req.session.success,
errors: req.session.errors});