From: Stas Vilchik Date: Thu, 4 Dec 2014 13:29:53 +0000 (+0100) Subject: SONAR-5811 Use the new /api/sources/raw WS instead of the deprecated /api/sources X-Git-Tag: 5.0-RC1~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39903717d96385b7a16e1fd945c4d7d2f9370ed7;p=sonarqube.git SONAR-5811 Use the new /api/sources/raw WS instead of the deprecated /api/sources --- 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