From 66f566027482185632aa214a7c55cc28e0100a21 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 13 Apr 2024 16:42:21 +0100 Subject: [PATCH] only allow GET on /mojang/status --- src/main/java/cc/fascinated/controller/MojangController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cc/fascinated/controller/MojangController.java b/src/main/java/cc/fascinated/controller/MojangController.java index cb6e658..0e96512 100644 --- a/src/main/java/cc/fascinated/controller/MojangController.java +++ b/src/main/java/cc/fascinated/controller/MojangController.java @@ -6,6 +6,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; @RestController @@ -16,6 +17,7 @@ public class MojangController { @Autowired private MojangService mojangService; + @ResponseBody @RequestMapping(value = "/status") public CachedEndpointStatus getStatus() { return mojangService.getMojangApiStatus();