remove player avatar example
Some checks failed
deploy / deploy (push) Failing after 15s

This commit is contained in:
Lee 2024-04-08 04:54:43 +01:00
parent 2dd055d156
commit d4a4884b8f
3 changed files with 5 additions and 5 deletions

View File

@ -17,8 +17,7 @@ public class HomeController {
@RequestMapping(value = "/")
public String home(Model model) {
model.addAttribute("url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid);
model.addAttribute("avatar_url", Config.INSTANCE.getWebPublicUrl() + "/player/avatar/" + exampleUuid);
model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid);
return "index";
}
}

View File

@ -21,7 +21,9 @@ import java.util.concurrent.TimeUnit;
public class PlayerController {
private final CacheControl cacheControl = CacheControl.maxAge(1, TimeUnit.HOURS).cachePublic();
@NonNull private final SkinPart defaultHead = Objects.requireNonNull(Skin.getDefaultHead(), "Default head is null");
@NonNull
private final SkinPart defaultHead = Objects.requireNonNull(Skin.getDefaultHead(), "Default head is null");
private final PlayerService playerManagerService;
@Autowired

View File

@ -19,8 +19,7 @@
<p>Wrapper for the Minecraft APIs to make them easier to use.</p>
<div class="flex flex-col mt-3">
<p>Player Data: <a class="text-blue-600" th:href="${url}" th:text="${url}">???</a></p>
<p>Avatar Url: <a class="text-blue-600" th:href="${avatar_url}" th:text="${avatar_url}">???</a></p>
<p>Player Data: <a class="text-blue-600" th:href="${player_example_url}" th:text="${player_example_url}">???</a></p>
</div>
</body>
</html>