diff --git a/src/js/client.js b/src/js/client.js index 2fa99606e..c5e97ce2f 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -274,7 +274,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.userInfo = function (callback) { - get('/api/v1/profile').success(function(data, status) { + get('/api/v1/user/profile').success(function(data, status) { if (status !== 200 || typeof data !== 'object') return callback(new ClientError(status, data)); callback(null, data); }).error(defaultErrorHandler(callback)); @@ -914,7 +914,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }; Client.prototype.updateProfile = function (data, callback) { - post('/api/v1/profile', data).success(function(data, status) { + post('/api/v1/user/profile', data).success(function(data, status) { if (status !== 204) return callback(new ClientError(status, data)); callback(null, data); }).error(defaultErrorHandler(callback)); @@ -926,7 +926,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N newPassword: newPassword }; - post('/api/v1/profile/password', data).success(function(data, status) { + post('/api/v1/user/profile/password', data).success(function(data, status) { if (status !== 204) return callback(new ClientError(status, data)); callback(null, data); }).error(defaultErrorHandler(callback)); @@ -935,7 +935,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N Client.prototype.setTwoFactorAuthenticationSecret = function (callback) { var data = {}; - post('/api/v1/profile/twofactorauthentication', data).success(function(data, status) { + post('/api/v1/user/profile/twofactorauthentication', data).success(function(data, status) { if (status !== 201) return callback(new ClientError(status, data)); callback(null, data); }).error(defaultErrorHandler(callback)); @@ -946,7 +946,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N totpToken: totpToken }; - post('/api/v1/profile/twofactorauthentication/enable', data).success(function(data, status) { + post('/api/v1/user/profile/twofactorauthentication/enable', data).success(function(data, status) { if (status !== 202) return callback(new ClientError(status, data)); callback(null); }).error(defaultErrorHandler(callback)); @@ -957,7 +957,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N password: password }; - post('/api/v1/profile/twofactorauthentication/disable', data).success(function(data, status) { + post('/api/v1/user/profile/twofactorauthentication/disable', data).success(function(data, status) { if (status !== 202) return callback(new ClientError(status, data)); callback(null); }).error(defaultErrorHandler(callback));