aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-24 03:10:12 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-24 03:10:12 +0000
commit43f7514bb2ae00d3805f1468f89bbdab6fc595fa (patch)
tree94832654416ffcd8bcd430428479b4c931794b91 /routes
parent64d9ccb6ae21a12d6fbd61b371397d8d5f2e783f (diff)
parentc5fa21db9ad2b129adceacddfbde62724d15886c (diff)
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'routes')
-rw-r--r--routes/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/index.js b/routes/index.js
index d3c55e6..359ba4f 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -96,7 +96,7 @@ router.get('/search', function(req, res, next) {
router.get('/questions/:exam_id', function (req,res) {
var examID = req.params.exam_id;
console.log(examID);
- dbFile.get_exam_byID(examID, function(exam){
+ dbFile.get_exam_byID(examID, function(success, error, exam){
/* [
{ q_id: 1, question: 'this is q1' },