From 39903717d96385b7a16e1fd945c4d7d2f9370ed7 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 4 Dec 2014 14:29:53 +0100 Subject: [PATCH] SONAR-5811 Use the new /api/sources/raw WS instead of the deprecated /api/sources --- server/sonar-web/src/main/coffee/component-viewer/main.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/coffee/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/component-viewer/main.coffee index 54f56b2f3f3..a35083017ff 100644 --- a/server/sonar-web/src/main/coffee/component-viewer/main.coffee +++ b/server/sonar-web/src/main/coffee/component-viewer/main.coffee @@ -40,7 +40,7 @@ define [ API_COMPONENT = "#{baseUrl}/api/components/app" API_SOURCES = "#{baseUrl}/api/sources/show" - API_RAW_SOURCES = "#{baseUrl}/api/sources" + API_RAW_SOURCES = "#{baseUrl}/api/sources/raw" API_MEASURES = "#{baseUrl}/api/resources" API_TESTS = "#{baseUrl}/api/tests/show" @@ -347,7 +347,7 @@ define [ showRawSources: -> key = encodeURIComponent @component.get 'key' - url = "#{API_RAW_SOURCES}?resource=#{key}&format=txt" + url = "#{API_RAW_SOURCES}?key=#{key}" location.href = url -- 2.39.5