Skip to content

Commit

Permalink
#272 Allow anonymous access to health/pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
baardl committed Aug 3, 2023
1 parent ae334f8 commit e362892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class StingraySecurityFilter implements ContainerRequestFilter {
static {
securityOverriddenPaths = new LinkedHashSet<>();
securityOverriddenPaths.add("health");
securityOverriddenPaths.add("health/pretty");
securityOverriddenPaths.add("openapi.yaml");
securityOverriddenPaths.add("openapi.json");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Response getHealth() {
}

@GET
@Path("/pretty")
@Path("pretty")
@Produces(MediaType.APPLICATION_JSON)
@SecurityRequirements(@SecurityRequirement(name = "none")) // disable authorization requirement in openapi spec
public Response getHealthPrettyPrinted() {
Expand Down

0 comments on commit e362892

Please sign in to comment.