From 2e326bb7be256e6fe9f8566e296271e59a847b94 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 30 Jul 2024 22:00:07 +0100 Subject: [PATCH] oopsie --- .../java/xyz/mcutils/backend/controller/MojangController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/xyz/mcutils/backend/controller/MojangController.java b/src/main/java/xyz/mcutils/backend/controller/MojangController.java index 4494b3a..a65a570 100644 --- a/src/main/java/xyz/mcutils/backend/controller/MojangController.java +++ b/src/main/java/xyz/mcutils/backend/controller/MojangController.java @@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RestController; import xyz.mcutils.backend.model.cache.CachedEndpointStatus; import xyz.mcutils.backend.service.MojangService; +import java.util.Map; import java.util.concurrent.TimeUnit; @RestController @@ -27,6 +28,6 @@ public class MojangController { public ResponseEntity getStatus() { return ResponseEntity.ok() .cacheControl(CacheControl.maxAge(1, TimeUnit.MINUTES).cachePublic()) - .body(mojangService.getMojangServerStatus()); + .body(Map.of("endpoints", mojangService.getMojangServerStatus())); } }