Skip to content

Commit

Permalink
Merge pull request #507 from groldan/webresources_routing
Browse files Browse the repository at this point in the history
Add routes to /webresources/wfs/** and /webresources/wms/**
  • Loading branch information
groldan authored Aug 29, 2024
2 parents 6bf7536 + 7446289 commit cc7766f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config
Submodule config updated 1 files
+20 −19 gateway-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ public void getSchema(HttpServletRequest request, HttpServletResponse response)
classPathPublisher.handleRequest(request, response);
}

/**
* Serve satic resources from classpath.
*
* <p>I.e.:
*
* <ul>
* <li>{@code /webresources/wfs/**}
* </ul>
*/
@GetMapping(path = {"/webresources/wfs/**"})
public void getStaticResource(HttpServletRequest request, HttpServletResponse response)
throws Exception {
classPathPublisher.handleRequest(request, response);
}

@GetMapping(path = {"/wfs", "/ows"})
public void handleGet(HttpServletRequest request, HttpServletResponse response)
throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ public void getWmsSchema(HttpServletRequest request, HttpServletResponse respons
* <ul>
* <li>{@code /openlayers/**}
* <li>{@code /openlayers3/**}
* <li>{@code /webresources/wms/**}
* <li>{@code /options.png}
* </ul>
*/
@GetMapping(path = {"/openlayers/**", "/openlayers3/**"})
@GetMapping(
path = {"/openlayers/**", "/openlayers3/**", "/webresources/wms/**", "/options.png"})
public void getStaticResource(HttpServletRequest request, HttpServletResponse response)
throws Exception {
classPathPublisher.handleRequest(request, response);
Expand Down

0 comments on commit cc7766f

Please sign in to comment.