From 0c9ad212fb26eb8bff9d89b3bc7e291d6e88b2ab Mon Sep 17 00:00:00 2001 From: Cristhian Parra Date: Sun, 5 Nov 2017 22:18:46 -0300 Subject: [PATCH] Fixed registrations endpoint to point the new endpoint created --- www/js/services/user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/www/js/services/user.js b/www/js/services/user.js index df2dfff..40cf24f 100644 --- a/www/js/services/user.js +++ b/www/js/services/user.js @@ -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'}); },