Skip to content
Snippets Groups Projects

Can list games according to one or more statuses

Merged Ghost User requested to merge Score into Development
3 files
+ 33
8
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -55,8 +55,13 @@ export class GameController {
@@ -55,8 +55,13 @@ export class GameController {
}
}
@Get('listgames')
@Get('listgames')
async listGames() {
async listGames(state) {
return this.gameservice.listGames();
return this.gameservice.listGames(state);
 
}
 
 
@Get('listgames/:state')
 
async listGamesState(@Param('state') state: string) {
 
return this.gameservice.listGames(state);
}
}
// ClassSerializerInterceptor removes excluded columns set in Entities
// ClassSerializerInterceptor removes excluded columns set in Entities
Loading