forked from MinecraftUtilities/Backend
add bedrock example for the main page
This commit is contained in:
parent
72ac874b9f
commit
2b35fd51b0
@ -14,13 +14,15 @@ public class HomeController {
|
|||||||
* The example UUID.
|
* The example UUID.
|
||||||
*/
|
*/
|
||||||
private final String exampleUuid = "eeab5f8a-18dd-4d58-af78-2b3c4543da48";
|
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 = "/")
|
@GetMapping(value = "/")
|
||||||
public String home(Model model) {
|
public String home(Model model) {
|
||||||
model.addAttribute("public_url", Config.INSTANCE.getWebPublicUrl());
|
model.addAttribute("public_url", Config.INSTANCE.getWebPublicUrl());
|
||||||
model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid);
|
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("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status");
|
||||||
model.addAttribute("swagger_url", Config.INSTANCE.getWebPublicUrl() + "/swagger-ui.html");
|
model.addAttribute("swagger_url", Config.INSTANCE.getWebPublicUrl() + "/swagger-ui.html");
|
||||||
return "index";
|
return "index";
|
||||||
|
@ -52,9 +52,13 @@
|
|||||||
<td><a class="text-blue-400" th:text="${player_example_url}" th:href="${player_example_url}">???</a></td>
|
<td><a class="text-blue-400" th:text="${player_example_url}" th:href="${player_example_url}">???</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Server Data</td>
|
<td>Server Data (Java)</td>
|
||||||
<td><a class="text-blue-400" th:text="${java_server_example_url}" th:href="${java_server_example_url}">???</a></td>
|
<td><a class="text-blue-400" th:text="${java_server_example_url}" th:href="${java_server_example_url}">???</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Server Data (Bedrock)</td>
|
||||||
|
<td><a class="text-blue-400" th:text="${bedrock_server_example_url}" th:href="${bedrock_server_example_url}">???</a></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Mojang Endpoint Status</td>
|
<td>Mojang Endpoint Status</td>
|
||||||
<td><a class="text-blue-400" th:text="${mojang_endpoint_status_url}" th:href="${mojang_endpoint_status_url}">???</a></td>
|
<td><a class="text-blue-400" th:text="${mojang_endpoint_status_url}" th:href="${mojang_endpoint_status_url}">???</a></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user