Skip to content

Commit

Permalink
Fixed registrations endpoint to point the new endpoint created
Browse files Browse the repository at this point in the history
  • Loading branch information
cdparra committed Nov 6, 2017
1 parent e17cb6e commit 0c9ad21
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions www/js/services/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ angular.module('starter.services')
},

create: function (username, password) {
return cordovaHTTP.post(denguechat.env.baseURL + 'registrations', {
username: username,
password: password
return cordovaHTTP.post(denguechat.env.baseURL + 'sessions/registrations', {
user: {
username: username,
password: password
},
}, { 'content-type': 'application/json'});
},

Expand Down

0 comments on commit 0c9ad21

Please sign in to comment.