fix(swagger): enable in production
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m15s

This commit is contained in:
2025-02-07 12:06:03 +01:00
parent dac1fd77c5
commit d5a0b8f554
5 changed files with 9 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import org.eclipse.microprofile.jwt.JsonWebToken;
import org.eclipse.microprofile.openapi.annotations.Operation;
import org.jboss.resteasy.reactive.NoCache;
@Path("/hello")
@@ -58,6 +59,7 @@ public class ExampleResource {
@GET
@Produces("text/html")
@NoCache
@Operation(hidden = true)
public String getTokens() {
StringBuilder response = new StringBuilder().append("<html>")
.append("<body>")

View File

@@ -6,6 +6,7 @@ import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import org.eclipse.microprofile.openapi.annotations.Operation;
import static java.util.Objects.requireNonNull;
@@ -20,6 +21,7 @@ public class SomePage {
@GET
@Produces(MediaType.TEXT_HTML)
@Operation(hidden = true)
public Uni<String> get() {
return Uni.createFrom()
.completionStage(() -> page

View File

@@ -34,7 +34,7 @@ public class FrontendForwardingFilterREST implements ExceptionMapper<NotFoundExc
private static String text = null;
private static final String API_NAMESPACE_REGEX = "^/(api/.*|api)";
private static final String API_NAMESPACE_REGEX = "^/(api/.*|api|openapi|q/.*)";
private static final String FILENAME_REGEX = "^/.*\\.[^.]+$";
@Override