diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-12-04 14:29:53 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-12-04 14:29:53 +0100 |
commit | 39903717d96385b7a16e1fd945c4d7d2f9370ed7 (patch) | |
tree | a33b18bbba81ca7cb50fa81c7f9983706bfa50ca /server | |
parent | 06e2661398bcd5aed3528c76edb6286e58bbf09b (diff) | |
download | sonarqube-39903717d96385b7a16e1fd945c4d7d2f9370ed7.tar.gz sonarqube-39903717d96385b7a16e1fd945c4d7d2f9370ed7.zip |
SONAR-5811 Use the new /api/sources/raw WS instead of the deprecated /api/sources
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/coffee/component-viewer/main.coffee | 4 |
1 files 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 |