diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-12-16 11:08:29 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-12-19 10:12:52 +0100 |
commit | b55c11eff742dd35e273e1a3fcc79e51a89a90e2 (patch) | |
tree | 85060667ebc4b157cafac8a11b40661af4e370b4 /server/sonar-web/src/main/js/api | |
parent | 3a3bf3073419bc6c21a67965a9f8259dbb164fc6 (diff) | |
download | sonarqube-b55c11eff742dd35e273e1a3fcc79e51a89a90e2.tar.gz sonarqube-b55c11eff742dd35e273e1a3fcc79e51a89a90e2.zip |
SONAR-7287 Move FavoriteService to favorite package
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r-- | server/sonar-web/src/main/js/api/favorites.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/favorites.js b/server/sonar-web/src/main/js/api/favorites.js index 2c7149bd3c4..3bb5872aa1e 100644 --- a/server/sonar-web/src/main/js/api/favorites.js +++ b/server/sonar-web/src/main/js/api/favorites.js @@ -25,8 +25,8 @@ export const getFavorites = (): Promise<Object> => ( ); export function addFavorite (componentKey: string) { - const url = '/api/favourites'; - const data = { key: componentKey }; + const url = '/api/favorites'; + const data = { component: componentKey }; return post(url, data); } |