fix preview route path

This commit is contained in:
Lee 2024-04-20 19:58:50 +01:00
parent 92fe2b28e3
commit 17803410bd

@ -57,7 +57,7 @@ public class ServerController {
} }
@ResponseBody @ResponseBody
@GetMapping(value = "/preview/{platform}/{hostname}", produces = MediaType.IMAGE_PNG_VALUE) @GetMapping(value = "/{platform}/preview/{hostname}", produces = MediaType.IMAGE_PNG_VALUE)
public ResponseEntity<?> getServerPreview( public ResponseEntity<?> getServerPreview(
@Parameter(description = "The platform of the server", example = "java") @PathVariable String platform, @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, @Parameter(description = "The hostname and port of the server", example = "aetheria.cc") @PathVariable String hostname,