From 17803410bd6e64d188d29cac5dd0f43e886fae7d Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 20 Apr 2024 19:58:50 +0100 Subject: [PATCH] fix preview route path --- .../java/xyz/mcutils/backend/controller/ServerController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/mcutils/backend/controller/ServerController.java b/src/main/java/xyz/mcutils/backend/controller/ServerController.java index 244df7d..a529721 100644 --- a/src/main/java/xyz/mcutils/backend/controller/ServerController.java +++ b/src/main/java/xyz/mcutils/backend/controller/ServerController.java @@ -57,7 +57,7 @@ public class ServerController { } @ResponseBody - @GetMapping(value = "/preview/{platform}/{hostname}", produces = MediaType.IMAGE_PNG_VALUE) + @GetMapping(value = "/{platform}/preview/{hostname}", produces = MediaType.IMAGE_PNG_VALUE) public ResponseEntity getServerPreview( @Parameter(description = "The platform of the server", example = "java") @PathVariable String platform, @Parameter(description = "The hostname and port of the server", example = "aetheria.cc") @PathVariable String hostname,