From 11b74baf7920bcd4e39b5e77bfb49e6b08752dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 27 Jan 2015 08:25:52 +0100 Subject: [PATCH] Api token -> api key rename --- src/app/features/account/apiKeysCtrl.js | 6 +++--- src/app/features/account/partials/apikeys.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/features/account/apiKeysCtrl.js b/src/app/features/account/apiKeysCtrl.js index 64df055dd90..f4ec0d681e8 100644 --- a/src/app/features/account/apiKeysCtrl.js +++ b/src/app/features/account/apiKeysCtrl.js @@ -16,17 +16,17 @@ function (angular) { }; $scope.getTokens = function() { - backendSrv.get('/api/tokens').then(function(tokens) { + backendSrv.get('/api/auth/keys').then(function(tokens) { $scope.tokens = tokens; }); }; $scope.removeToken = function(id) { - backendSrv.delete('/api/tokens/'+id).then($scope.getTokens); + backendSrv.delete('/api/auth/keys/'+id).then($scope.getTokens); }; $scope.addToken = function() { - backendSrv.post('/api/tokens', $scope.token).then($scope.getTokens); + backendSrv.post('/api/auth/keys', $scope.token).then($scope.getTokens); }; $scope.init(); diff --git a/src/app/features/account/partials/apikeys.html b/src/app/features/account/partials/apikeys.html index 489cd85c743..612a29b9a79 100644 --- a/src/app/features/account/partials/apikeys.html +++ b/src/app/features/account/partials/apikeys.html @@ -39,7 +39,7 @@ {{t.name}} {{t.role}} - {{t.token}} + {{t.key}}