Admin page raid group tab working
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user