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

@@ -58,7 +58,7 @@ public class GameController{
@GetMapping("/count")
@AccountAuthorization(permissions = {AccountPermissionType.ADMIN, AccountPermissionType.USER})
public ObjectNode getGamesCount(@RequestParam(value = "searchTerm", required = false) String searchTerm){
log.info("Getting games count");
log.info("Getting games count with search term {}", searchTerm);
Long gamesCount;
@@ -98,6 +98,15 @@ public class GameController{
return returnNode;
}
@GetMapping("/{gameId}")
@AccountAuthorization(permissions = {AccountPermissionType.ADMIN, AccountPermissionType.USER})
public Game getGame(@PathVariable("gameId") UUID gameId){
log.info("Getting game {}", gameId);
return gameService.getGameById(gameId);
}
@PutMapping("/{gameId}")
@AccountAuthorization(permissions = {AccountPermissionType.ADMIN, AccountPermissionType.USER})
@GameAuthorization(permissions = {GamePermissionType.ADMIN})