only allow GET on /mojang/status
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m43s

This commit is contained in:
Lee 2024-04-13 16:42:21 +01:00
parent 55c2c95269
commit 66f5660274

@ -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();