From 077430ac66259bde495fb98080ce3a3d0a6e4783 Mon Sep 17 00:00:00 2001 From: Waref Haque Date: Sat, 23 Jul 2016 11:05:18 -0400 Subject: questions count --- routes/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index e89856f..4a0e54c 100644 --- a/routes/index.js +++ b/routes/index.js @@ -65,7 +65,8 @@ router.get('/exams/:id', function(req, res, next) { instructors: getInstructors, type:toProperCase(exams[i].type) + " Examination", title:exams[i].title, - id:exams[i]._id + id:exams[i]._id, + questionCount : exams[i].questions_count }; //console.log(minExamInfo); minExamInfoArray.push(minExamInfo); -- cgit v1.2.3