From 2b35fd51b05bd8f11909ea283b8426edc17ee7fb Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 14 Apr 2024 17:10:40 +0100 Subject: [PATCH] add bedrock example for the main page --- .../java/xyz/mcutils/backend/controller/HomeController.java | 6 ++++-- src/main/resources/templates/index.html | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/xyz/mcutils/backend/controller/HomeController.java b/src/main/java/xyz/mcutils/backend/controller/HomeController.java index 6baf8f6..f355471 100644 --- a/src/main/java/xyz/mcutils/backend/controller/HomeController.java +++ b/src/main/java/xyz/mcutils/backend/controller/HomeController.java @@ -14,13 +14,15 @@ public class HomeController { * The example UUID. */ private final String exampleUuid = "eeab5f8a-18dd-4d58-af78-2b3c4543da48"; - private final String exampleServer = "aetheria.cc"; + private final String exampleJavaServer = "aetheria.cc"; + private final String exampleBedrockServer = "geo.hivebedrock.network"; @GetMapping(value = "/") public String home(Model model) { model.addAttribute("public_url", Config.INSTANCE.getWebPublicUrl()); model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid); - model.addAttribute("java_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/java/" + exampleServer); + model.addAttribute("java_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/java/" + exampleJavaServer); + model.addAttribute("bedrock_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/bedrock/" + exampleBedrockServer); model.addAttribute("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status"); model.addAttribute("swagger_url", Config.INSTANCE.getWebPublicUrl() + "/swagger-ui.html"); return "index"; diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 2b62b3e..8e16102 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -52,9 +52,13 @@ ??? - Server Data + Server Data (Java) ??? + + Server Data (Bedrock) + ??? + Mojang Endpoint Status ???