refactor
This commit is contained in:
@@ -90,4 +90,11 @@ export class TeamController {
|
||||
async getDriverTeam(@Param('driverId') driverId: string): Promise<DriverTeamViewModel | null> {
|
||||
return this.teamService.getDriverTeam({ teamId: '', driverId });
|
||||
}
|
||||
|
||||
@Get('leaderboard')
|
||||
@ApiOperation({ summary: 'Get teams leaderboard' })
|
||||
@ApiResponse({ status: 200, description: 'Teams leaderboard' })
|
||||
async getTeamsLeaderboard(): Promise<any> {
|
||||
return this.teamService.getTeamsLeaderboard();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user