diff --git a/src/main/java/xyz/mcutils/backend/controller/HomeController.java b/src/main/java/xyz/mcutils/backend/controller/HomeController.java index ecccdc0..6baf8f6 100644 --- a/src/main/java/xyz/mcutils/backend/controller/HomeController.java +++ b/src/main/java/xyz/mcutils/backend/controller/HomeController.java @@ -18,6 +18,7 @@ public class HomeController { @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("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status"); diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 975d19d..348520b 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -1,30 +1,46 @@ - Minecraft Utilities + Minecraft Utilities - Wrapper for the Minecraft APIs + + - + + + + + + + + + + + + + + + -

Hello!

-

Wrapper for the Minecraft APIs to make them easier to use.

-

This page will eventually be replaced with a new one.

- Source Code +

Hello!

+

Wrapper for the Minecraft APIs to make them easier to use.

+

This page will eventually be replaced with a new one.

+Source Code -
-

Player Data: ???

-

Server Data: ???

-

Mojang Endpoint Status: ???

-

Swagger Docs: ???

-
+
+

Player Data: ???

+

Server Data: ???

+

Mojang Endpoint Status: ???

+

Swagger Docs: ???

+
- \ No newline at end of file +