Skip to content
Snippets Groups Projects
Commit fdf5daff authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

handle path

parent 80ab6a2f
No related branches found
No related tags found
1 merge request!816GMM Services
......@@ -57,7 +57,6 @@ public class SwaggerController {
private OpenAPI getOpenAPI(
HttpRequest<?> request,
HazardModel model) {
System.out.println("Is GMM deploy: " + gmmDeploy);
var openApi = new OpenAPIV3Parser().read("META-INF/swagger/nshmp-haz.yml");
if (gmmDeploy && ServletUtil.awsRuntime.isPresent()) {
......@@ -80,7 +79,8 @@ public class SwaggerController {
Paths paths = new Paths();
openApi.getPaths().forEach((path, pathItem) -> {
if (path.contains("/gmm")) {
paths.put(path, pathItem);
// Remove "/gmm" for AWS deployments
paths.put(path.substring(4), pathItem);
}
});
openApi.paths(paths);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment