diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-24 21:48:06 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-24 21:48:06 +0000 |
| commit | 2f819f8f2cfa5d2c5613f1f3d8b47b6a36331659 (patch) | |
| tree | 0c79fab94eadf50566ea968c59a3cc9da314df63 /routes/index.js | |
| parent | a0e04574545c4f2751c01c5919c34f6f99bc21ad (diff) | |
Added voting to front end
Diffstat (limited to 'routes/index.js')
| -rw-r--r-- | routes/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
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; }); |
