Skip to content

Commit

Permalink
#170 Implement alert import, follow and unfollow features
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Apr 13, 2017
1 parent 0ab460e commit 726dafd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/app/scripts/services/AlertingSrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
},

create: function(alertId) {
return $http.post(baseUrl + '/case/' + alertId, {});
return $http.post(baseUrl + '/' + alertId + '/createCase', {});
},

ignore: function(alertId) {
return $http.get(baseUrl + '/ignore/' + alertId);
},

follow: function(alertId) {
return $http.get(baseUrl + '/follow/' + alertId);
return $http.post(baseUrl + '/' + alertId + '/follow');
},

unfollow: function(alertId) {
return $http.get(baseUrl + '/unfollow/' + alertId);
return $http.post(baseUrl + '/' + alertId + '/unfollow');
},

stats: function(scope) {
Expand Down

0 comments on commit 726dafd

Please sign in to comment.