allow users to permanently delete their account

This commit is contained in:
Athou
2013-05-08 11:15:50 +02:00
parent e68b38139e
commit ef618c1e13
6 changed files with 68 additions and 12 deletions

View File

@@ -14,7 +14,9 @@ module.service('AnalyticsService', [ '$state', function($state) {
module.factory('ProfileService', ['$resource', function($resource) {
return $resource('rest/user/profile/');
var res = $resource('rest/user/profile/');
res.deleteAccount = $resource('rest/user/profile/deleteAccount').save;
return res;
}]);
module.factory('SettingsService', ['$resource', function($resource) {