aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/user-tokens.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/user-tokens.js')
-rw-r--r--server/sonar-web/src/main/js/api/user-tokens.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/api/user-tokens.js b/server/sonar-web/src/main/js/api/user-tokens.js
index ca522f914b4..582d5f12df7 100644
--- a/server/sonar-web/src/main/js/api/user-tokens.js
+++ b/server/sonar-web/src/main/js/api/user-tokens.js
@@ -7,8 +7,8 @@ import { getJSON, postJSON, post } from '../helpers/request.js';
* @returns {Promise}
*/
export function getTokens (login) {
- let url = baseUrl + '/api/user_tokens/search';
- let data = { login };
+ const url = baseUrl + '/api/user_tokens/search';
+ const data = { login };
return getJSON(url, data).then(r => r.userTokens);
}
@@ -20,8 +20,8 @@ export function getTokens (login) {
* @returns {Promise}
*/
export function generateToken(userLogin, tokenName) {
- let url = baseUrl + '/api/user_tokens/generate';
- let data = { login: userLogin, name: tokenName };
+ const url = baseUrl + '/api/user_tokens/generate';
+ const data = { login: userLogin, name: tokenName };
return postJSON(url, data);
}
@@ -33,7 +33,7 @@ export function generateToken(userLogin, tokenName) {
* @returns {Promise}
*/
export function revokeToken(userLogin, tokenName) {
- let url = baseUrl + '/api/user_tokens/revoke';
- let data = { login: userLogin, name: tokenName };
+ const url = baseUrl + '/api/user_tokens/revoke';
+ const data = { login: userLogin, name: tokenName };
return post(url, data);
}