From 1de25a92ba5d6fba8ed97792451d7baa4d33d605 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 14 Apr 2024 15:27:13 +0100 Subject: [PATCH] seo stuff --- .../backend/controller/HomeController.java | 1 + src/main/resources/templates/index.html | 42 +++++++++++++------ 2 files changed, 30 insertions(+), 13 deletions(-) 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 +