diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-06-06 10:39:17 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-12 20:21:03 +0200 |
commit | 28766a60ff43a9a742f59de7f9c15c05717cb709 (patch) | |
tree | fa5cddea0a756a4d0bf8441510e58ee1e32a4fc4 /server/sonar-web/src/main/js/api/nav.ts | |
parent | a387b409e3904805b954c70fdc0f791000e81c55 (diff) | |
download | sonarqube-28766a60ff43a9a742f59de7f9c15c05717cb709.tar.gz sonarqube-28766a60ff43a9a742f59de7f9c15c05717cb709.zip |
SONAR-10817 replace api/editions/form_data by api/navigation/marketplace
The private WS becomes public because it is used by the marketplace
page of community edition.
Diffstat (limited to 'server/sonar-web/src/main/js/api/nav.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/nav.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/nav.ts b/server/sonar-web/src/main/js/api/nav.ts index 7dcf404ad71..1313c73972e 100644 --- a/server/sonar-web/src/main/js/api/nav.ts +++ b/server/sonar-web/src/main/js/api/nav.ts @@ -31,6 +31,10 @@ export function getComponentNavigation( return getJSON('/api/navigation/component', data).catch(throwGlobalError); } +export function getMarketplaceNavigation(): Promise<{ serverId: string; ncloc: number }> { + return getJSON('/api/navigation/marketplace').catch(throwGlobalError); +} + export function getSettingsNavigation(): Promise<any> { return getJSON('/api/navigation/settings').catch(throwGlobalError); } |