From a6e78b04f7ce4003353d91b5bf0c6d7c19f9921f Mon Sep 17 00:00:00 2001 From: IgorRodchenkov Date: Mon, 8 Apr 2024 15:31:00 -0400 Subject: [PATCH] Added '/xref/' in addition to '/xref' to the POST method controller --- .../biopax/validator/web/controller/SuggesterController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biopax-validator-web/src/main/java/org/biopax/validator/web/controller/SuggesterController.java b/biopax-validator-web/src/main/java/org/biopax/validator/web/controller/SuggesterController.java index ae46eebc..62371d2a 100644 --- a/biopax-validator-web/src/main/java/org/biopax/validator/web/controller/SuggesterController.java +++ b/biopax-validator-web/src/main/java/org/biopax/validator/web/controller/SuggesterController.java @@ -29,7 +29,7 @@ public String xrefDbId(@PathVariable String db, @PathVariable String id, return uri; } - @PostMapping(value = "/xref", produces = APPLICATION_JSON_VALUE) + @PostMapping(value = {"/xref", "/xref/"}, produces = APPLICATION_JSON_VALUE) public Clue xref(@RequestBody Xref[] xrefs, HttpServletResponse response) throws IOException {