diff --git a/templates/js/controllers/settingsController.js b/templates/js/controllers/settingsController.js
index 35c9531..c1a7724 100644
--- a/templates/js/controllers/settingsController.js
+++ b/templates/js/controllers/settingsController.js
@@ -22,7 +22,6 @@ angular.module('SeHub')
$scope.loadingData = false;
$location.path('/register')
}
-
});
$scope.isEditMode = false;
diff --git a/templates/js/services/apiService.js b/templates/js/services/apiService.js
index 92871d4..c1a95fa 100644
--- a/templates/js/services/apiService.js
+++ b/templates/js/services/apiService.js
@@ -47,8 +47,7 @@ service.factory('apiService', ['$http', function($http) {
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getAll/" + token;
req = {
method : "GET",
- url : url,
- data: token
+ url : url
};
return $http(req);
@@ -71,6 +70,16 @@ service.factory('apiService', ['$http', function($http) {
};
return $http(req);
},
+ createMessage: function(token, payLoad){
+ var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getCourseMessages/" + token;
+ req = {
+ method : "POST",
+ url : url,
+ data: payLoad
+
+ };
+ return $http(req);
+ },
getCourseMessages: function(token, courseName){
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getCourseMessages/" + token + '/' + courseName;
req = {
diff --git a/templates/views/home.html b/templates/views/home.html
index 39db020..dcce1b2 100644
--- a/templates/views/home.html
+++ b/templates/views/home.html
@@ -99,10 +99,17 @@