diff options
author | 2021-02-25 23:23:09 -0500 | |
---|---|---|
committer | 2021-02-25 23:37:24 -0500 | |
commit | 472d2e8d8df431e46b0f0dead8448bff5e80ab0d (patch) | |
tree | 82d7baacd1d32d0d9220f1daaef032ff76104f46 /src/main/java | |
parent | 4a56debaac0d6d7a073ae24f1d8099879f121ba1 (diff) |
Fix sonar issues
* Set minimum code coverage to 80%
* Remove unsafe http method vulnerability
Issue-ID: CPS-213
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I917899a093fccc4317b0fa063137ec0276311f72
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/cps/temporal/controller/QueryController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/cps/temporal/controller/QueryController.java b/src/main/java/org/onap/cps/temporal/controller/QueryController.java index b12b451..d083dc9 100644 --- a/src/main/java/org/onap/cps/temporal/controller/QueryController.java +++ b/src/main/java/org/onap/cps/temporal/controller/QueryController.java @@ -18,7 +18,7 @@ package org.onap.cps.temporal.controller; -import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** @@ -27,7 +27,7 @@ import org.springframework.web.bind.annotation.RestController; @RestController public class QueryController { - @RequestMapping("/") + @GetMapping("/") public String home() { return "Welcome to CPS Temporal Service!"; } |