Skip to content

Commit

Permalink
[HOTFIX] Specify GET and POST methods for the vuln. chain REST API ca…
Browse files Browse the repository at this point in the history
…ll to see JSON output on browsers
  • Loading branch information
mir-am committed Feb 11, 2022
1 parent b395ae7 commit 76f9997
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

@Lazy
@RestController
@RequestMapping("/{forge}/packages/{pkg}/{pkg_ver}/vulnerable-call-chains")
@RequestMapping(value = "/{forge}/packages/{pkg}/{pkg_ver}/vulnerable-call-chains", produces = MediaType.APPLICATION_JSON_VALUE,
method = {RequestMethod.GET, RequestMethod.POST})
public class VulnerableCallChainsApi {

private static final Logger logger = LoggerFactory.getLogger(VulnerableCallChainsApi.class);
Expand Down

0 comments on commit 76f9997

Please sign in to comment.