fix index and /mojang/status routes
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Has been cancelled

This commit is contained in:
Lee
2024-04-13 17:40:03 +01:00
parent 77f787b659
commit 1a0dd8844d
7 changed files with 21 additions and 19 deletions

View File

@ -5,6 +5,7 @@ import cc.fascinated.service.MojangService;
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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@ -18,7 +19,7 @@ public class MojangController {
private MojangService mojangService;
@ResponseBody
@RequestMapping(value = "/status")
@GetMapping(value = "/status")
public CachedEndpointStatus getStatus() {
return mojangService.getMojangApiStatus();
}