Skip to content

Commit

Permalink
Allow images from sub-directories ... #165.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Oct 13, 2024
1 parent 7022f14 commit 8f82aa4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ private void addAccessControlAllowHeaders(HttpServletResponse response) {
}

@ResponseBody
@RequestMapping(value = "/workspace/images/{filename}", method = RequestMethod.GET)
@RequestMapping(value = "/workspace/images/{*filename}", method = RequestMethod.GET)
public ResponseEntity getImage(@PathVariable("filename") String filename,
HttpServletResponse response) {
return getImage(1, filename, response);
}

@ResponseBody
@RequestMapping(value = "/workspace/{workspaceId}/images/{filename}", method = RequestMethod.GET)
@RequestMapping(value = "/workspace/{workspaceId}/images/{*filename}", method = RequestMethod.GET)
public ResponseEntity getImage(@PathVariable("workspaceId") long workspaceId,
@PathVariable("filename") String filename,
HttpServletResponse response) {
Expand Down

0 comments on commit 8f82aa4

Please sign in to comment.