add server example to main page
All checks were successful
ci / deploy (push) Successful in 1m44s

This commit is contained in:
Lee 2024-04-10 08:34:43 +01:00
parent d525d343e4
commit c7fe26ef8f
2 changed files with 2 additions and 0 deletions

@ -18,6 +18,7 @@ public class HomeController {
@RequestMapping(value = "/")
public String home(Model model) {
model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid);
model.addAttribute("java_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/java/play.hypixel.net");
return "index";
}
}

@ -21,6 +21,7 @@
<div class="flex flex-col mt-3">
<p>Player Data: <a class="text-blue-600" target=”_blank” th:href="${player_example_url}" th:text="${player_example_url}">???</a></p>
<p>Java Server: <a class="text-blue-600" target=”_blank” th:href="${java_server_example_url}" th:text="${java_server_example_url}">???</a></p>
</div>
</body>
</html>