This commit is contained in:
batche
2022-12-22 18:38:18 +01:00
parent 8063f1c04c
commit 97d4f1fef3

View File

@@ -66,6 +66,16 @@ export class GameController {
return this.gameService.acceptInvitation(user, token);
}
@Get('spectator')
@UseGuards(AuthenticateGuard)
@UseGuards(TwoFactorGuard)
async findWtyatchableMatches()
{
return this.gameService.findWatchableMatches()
}
@Get('invitations')
@UseGuards(AuthenticateGuard)
@UseGuards(TwoFactorGuard)
@@ -94,6 +104,9 @@ export class GameController {
return this.gameService.createGame(creategameDto);
}
@Post('gameserver/updategame')
async updateGame(@Body() updateGameDto : UpdateGameDto)
{