|
@@ -1,10 +1,10 @@
|
|
|
'use strict';
|
|
|
|
|
|
-angular.module('app').service('messageService', ['$http', '$cookies', '$location', 'userService', function($http, $cookies, $location, userService) {
|
|
|
+angular.module('app').service('messageService', ['$http', '$cookies', 'userService', function($http, $cookies, userService) {
|
|
|
var self = this;
|
|
|
|
|
|
this.submit = function(bundle, successCallback, failsCallback) {
|
|
|
bundle.userId = userService.getMe().Id;
|
|
|
- $http.post($location.protocol() + '://' + $location.host() + ':' + $location.port() + '/api/bundle', bundle).then(successCallback, failsCallback);
|
|
|
+ $http.post('/api/bundle', bundle).then(successCallback, failsCallback);
|
|
|
}
|
|
|
}]);
|