Skip to content

Commit

Permalink
Add routes to /webresources/wfs/** and /webresources/wms/**
Browse files Browse the repository at this point in the history
  • Loading branch information
groldan committed Aug 29, 2024
1 parent 3dfd43a commit 7446289
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 7446289

Please sign in to comment.