aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkumar <kumar.damani@mail.utoronto.ca>2016-07-24 01:38:36 +0000
committerkumar <kumar.damani@mail.utoronto.ca>2016-07-24 01:38:36 +0000
commitc5fa21db9ad2b129adceacddfbde62724d15886c (patch)
tree2ec91a6284c2a9ff7545694a3a58e723e9be4ef7
parentbeb24e45b6ea43bb7f89b38631047df17a9931df (diff)
parent3dc5f9d58a548dcace9e9367caa5d0e18eacae92 (diff)
pull
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
-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' },