From 40bb40f37b47e8d5825ef349ec68c70e6b1d06c8 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 23 Sep 2016 17:42:18 +0200 Subject: SONAR-8170 SONAR-8171 Reorganize My Account space --- server/sonar-web/src/main/js/api/favorites.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/sonar-web/src/main/js/api') 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'; -- cgit v1.2.3