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 3396f6a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
5 changes: 3 additions & 2 deletions compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ GEOSERVER_BASE_PATH=/geoserver/cloud
LOGGING_PROFILE=default
GEOSERVER_DEFAULT_PROFILES="${LOGGING_PROFILE},acl"

GATEWAY_DEFAULT_PROFILES=${LOGGING_PROFILE}
DISCOVERY_SERVER_DEFAULT_PROFILES=${LOGGING_PROFILE}
#GATEWAY_DEFAULT_PROFILES=${LOGGING_PROFILE}
GATEWAY_DEFAULT_PROFILES=debug
#DISCOVERY_SERVER_DEFAULT_PROFILES=${LOGGING_PROFILE}

# Either 'git' or 'native' active profile must be set. Use the default sample git repository to download the services configuration from
# If 'git', BEWARE config server will look for a branch called "master", and github changed the default branch name to "main"
Expand Down
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 @@ -39,6 +39,21 @@ public void getSchema(HttpServletRequest request, HttpServletResponse response)
throws Exception {
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ 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 3396f6a

Please sign in to comment.