diff --git a/backend/src/main/java/com/redhat/cloud/notifications/routers/StatusResource.java b/backend/src/main/java/com/redhat/cloud/notifications/routers/StatusResource.java index c00b67b61f..7e3d326235 100644 --- a/backend/src/main/java/com/redhat/cloud/notifications/routers/StatusResource.java +++ b/backend/src/main/java/com/redhat/cloud/notifications/routers/StatusResource.java @@ -1,11 +1,10 @@ package com.redhat.cloud.notifications.routers; -import com.redhat.cloud.notifications.models.CurrentStatus; -import com.redhat.cloud.notifications.models.Status; import com.redhat.cloud.notifications.oapi.OApiFilter; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.openapi.annotations.tags.Tag; import static com.redhat.cloud.notifications.Constants.API_NOTIFICATIONS_V_1_0; @@ -25,9 +24,7 @@ public static class V2 extends StatusResource { @GET @Produces(APPLICATION_JSON) @Tag(name = OApiFilter.PRIVATE) - public CurrentStatus getCurrentStatus() { - CurrentStatus cs = new CurrentStatus(); - cs.setStatus(Status.UP); - return cs; + public Response getCurrentStatus() { + return Response.ok().build(); } }