Skip to content

Commit

Permalink
Merge pull request #10656 from cBioPortal/fix-10649-CIS-URL-Update
Browse files Browse the repository at this point in the history
Fix custom MSK endpoints to include api-legacy
  • Loading branch information
inodb authored Feb 21, 2024
2 parents 7a63476 + 9849606 commit c73883f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ private static Pattern initDMPSampleIDPattern() {
}

@RequestMapping(
value={"/cis/{sampleID}", "/darwin/{sampleID}"},
value={"/api-legacy/cis/{sampleID}", "/api-legacy/darwin/{sampleID}"},
method=RequestMethod.GET
)
public ModelAndView redirectIMPACT(@PathVariable String sampleID, ModelMap model) {
return new ModelAndView(getRedirectURL(sampleID), model);
}

@RequestMapping(
value="/crdb/{sampleID}",
value="/api-legacy/crdb/{sampleID}",
method=RequestMethod.GET
)
public ModelAndView redirectCRDB(@PathVariable String sampleID, ModelMap model) {
Expand Down Expand Up @@ -132,7 +132,7 @@ private String getRedirectURL(String sampleID) {
}

@RequestMapping(
value={"/cis/{sampleID}/exists", "/darwin/{sampleID}/exists", "/crdb/{sampleID}/exists"},
value={"/api-legacy/cis/{sampleID}/exists", "/api-legacy/darwin/{sampleID}/exists", "/api-legacy/crdb/{sampleID}/exists"},
method=RequestMethod.GET
)
public @ResponseBody HashMap<String, Boolean> exists(@PathVariable String sampleID, ModelMap model) {
Expand Down

0 comments on commit c73883f

Please sign in to comment.