From 2f819f8f2cfa5d2c5613f1f3d8b47b6a36331659 Mon Sep 17 00:00:00 2001 From: HumairAK Date: Sun, 24 Jul 2016 17:48:06 -0400 Subject: Added voting to front end --- routes/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routes/index.js') diff --git a/routes/index.js b/routes/index.js index d8cfd36..23cd7c3 100644 --- a/routes/index.js +++ b/routes/index.js @@ -182,9 +182,11 @@ router.get('/questions/:exam_id', function (req,res) { */ router.get('/solutions/:exam_id/:q_num', function (req, res) { + console.log("index.js::Getting solutions"); var examID = req.params.exam_id; var qID = req.params.q_num; dbFile.get_all_solutions(examID, qID, function (solutions) { + console.log("index.js::GOT solutions"); solutions.forEach(function(soln){ soln.commentCount = soln.comments.length; }); -- cgit v1.2.3