update example player
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m44s

This commit is contained in:
Lee 2024-04-14 17:32:23 +01:00
parent 3b946132af
commit 5877b100bc
3 changed files with 2 additions and 5 deletions

@ -13,14 +13,14 @@ public class HomeController {
/**
* The example UUID.
*/
private final String exampleUuid = "eeab5f8a-18dd-4d58-af78-2b3c4543da48";
private final String examplePlayer = "Notch";
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("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + examplePlayer);
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");

@ -39,8 +39,6 @@ public class MetricService {
registerMetric(new TotalRequestsMetric());
registerMetric(new RequestsPerRouteMetric());
// todo: don't bother saving and loading metrics when running tests
// Load the metrics from Redis
loadMetrics();

@ -11,7 +11,6 @@ import org.springframework.data.redis.core.RedisHash;
@AllArgsConstructor
@Getter @Setter
@RedisHash(value = "metric")
@Measurement(name = "metric")
public abstract class Metric<T> {
/**
* The id of the metric.