Admin page raid group tab working

This commit is contained in:
2025-03-05 20:12:32 -05:00
parent f528cbaa2b
commit aff81e27eb
23 changed files with 624 additions and 7 deletions

View File

@@ -27,13 +27,25 @@ public class IconController{
@GetMapping("/gameIcons/{gameIconName}")
@AccountAuthorization(permissions = {})
public ResponseEntity<byte[]> getGameClassIcons(@PathVariable("gameIconName") String gameIconName) throws IOException{
public ResponseEntity<byte[]> getGameIcons(@PathVariable("gameIconName") String gameIconName) throws IOException{
log.info("Getting game icon {}", gameIconName);
byte[] resource = Files.readAllBytes(Path.of(uploadFileDirectory + "/gameIcons/" + gameIconName));
return ResponseEntity.ok().body(resource);
}
@GetMapping("/raidGroupIcons/{raidGroupIconName}")
@AccountAuthorization(permissions = {})
public ResponseEntity<byte[]> getRaidGroupIcons(@PathVariable("raidGroupIconName") String raidGroupIconName) throws IOException{
log.info("Getting raid group icon {}", raidGroupIconName);
byte[] resource = Files.readAllBytes(Path.of(uploadFileDirectory + "/raidGroupIcons/" + raidGroupIconName));
return ResponseEntity.ok().body(resource);
}
}