diff --git a/app/scripts/services.js b/app/scripts/services.js index c648974..b5a5a1b 100644 --- a/app/scripts/services.js +++ b/app/scripts/services.js @@ -37,8 +37,8 @@ angular.module('angularRestfulAuth') var currentUser = getUserFromToken(); return { - save: function(data, success, error) { - $http.post(baseUrl + '/signin', data).success(success).error(error) + signup: function(data, success, error) { + $http.post(baseUrl + '/signup', data).success(success).error(error) }, signin: function(data, success, error) { $http.post(baseUrl + '/authenticate', data).success(success).error(error) @@ -53,4 +53,4 @@ angular.module('angularRestfulAuth') } }; } -]); \ No newline at end of file +]);