aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-22 02:46:17 +0000
committerHumairAK <humair88@hotmail.com>2016-07-22 02:46:17 +0000
commit0653dcc395a54c8c95ed4f997ff9bbf02ea60b5e (patch)
tree4ca24d7163e17c90ec7c25f00865747c141921c3 /routes
parent49d11776dc2b96cf93e04d15c11a02f880fa8941 (diff)
Minor bug fixes
Diffstat (limited to 'routes')
-rw-r--r--routes/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/index.js b/routes/index.js
index da9ec8d..1962652 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -77,6 +77,7 @@ router.post('/admin/update/exam', function(req,res){
router.post('/admin/update/course', function(req,res){
var course_code = req.body.course_code,
title = req.body.title;
+
dbFile.add_course(course_code, title, function(courseAdded, statusMessage){
if(courseAdded){
console.log("Success!");