diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2020-01-15 12:11:31 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-01-15 20:46:13 +0100 |
commit | e7c8853b57a219ab992a6710591d229ae1b7963c (patch) | |
tree | 203c76de5043748360f0e20cf392f353e5f329cd /server/sonar-web | |
parent | 938b55320a8577619d5e7db8bff8ea26b3d504c8 (diff) | |
download | sonarqube-e7c8853b57a219ab992a6710591d229ae1b7963c.tar.gz sonarqube-e7c8853b57a219ab992a6710591d229ae1b7963c.zip |
SONAR-12720 Fix api call
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/js/api/security-hotspots.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/security-hotspots.ts b/server/sonar-web/src/main/js/api/security-hotspots.ts index 08b6d1e490d..0a54022b6db 100644 --- a/server/sonar-web/src/main/js/api/security-hotspots.ts +++ b/server/sonar-web/src/main/js/api/security-hotspots.ts @@ -46,7 +46,9 @@ export function setSecurityHotspotStatus( } export function commentSecurityHotspot(hotspotKey: string, comment: string): Promise<void> { - return post('api/hotspots/add_comment', { hotspot: hotspotKey, comment }).catch(throwGlobalError); + return post('/api/hotspots/add_comment', { hotspot: hotspotKey, comment }).catch( + throwGlobalError + ); } export function getSecurityHotspots( |