Skip to content

Commit

Permalink
urls for deploy, duh
Browse files Browse the repository at this point in the history
  • Loading branch information
familiarcat committed Nov 13, 2013
1 parent 7044ab8 commit 1a52d68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/scripts/services/MessagesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ angular.module('messageBoothApp')
.service('MessagesService', function MessagesService($http) {
var messagesService = {
put: function(id, message) {
var promise = $http.put('http://localhost:3000/messages/'+id+'.json', message).then(function (response) {
var promise = $http.put('/messages/'+id+'.json', message).then(function (response) {
console.log("Message:");
console.log(message);
return response.data;
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/services/UsersService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ angular.module('messageBoothApp')
.service('UsersService', function Users($http) {
var usersService = {
get: function() {
var promise = $http.get('http://localhost:3000/users.json').then(function (response) {
var promise = $http.get('/users.json').then(function (response) {
console.log(response);
return response.data;
});
return promise;
},
put: function(id, user) {
var promise = $http.put('http://localhost:3000/users/'+id+'.json', user).then(function (response) {
var promise = $http.put('/users/'+id+'.json', user).then(function (response) {
console.log("User:");
console.log(user);
return response.data;
Expand Down

0 comments on commit 1a52d68

Please sign in to comment.