aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-09-23 17:42:18 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-09-30 17:23:37 +0200
commit40bb40f37b47e8d5825ef349ec68c70e6b1d06c8 (patch)
treeb572767548b0f5d44ad0cd026cee8ae8d6729ceb /server/sonar-web/src/main/js/api
parente9756989048439cb1c4b8eabf5fafb868b93f67e (diff)
downloadsonarqube-40bb40f37b47e8d5825ef349ec68c70e6b1d06c8.tar.gz
sonarqube-40bb40f37b47e8d5825ef349ec68c70e6b1d06c8.zip
SONAR-8170 SONAR-8171 Reorganize My Account space
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r--server/sonar-web/src/main/js/api/favorites.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/favorites.js b/server/sonar-web/src/main/js/api/favorites.js
index eff40c309fd..d3b0e2eed44 100644
--- a/server/sonar-web/src/main/js/api/favorites.js
+++ b/server/sonar-web/src/main/js/api/favorites.js
@@ -17,7 +17,9 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { post, requestDelete } from '../helpers/request';
+import { post, requestDelete, getJSON } from '../helpers/request';
+
+export const getFavorites = () => getJSON('/api/favourites');
export function addFavorite (componentKey) {
const url = '/api/favourites';