refactor league module (wip)
This commit is contained in:
@@ -30,6 +30,7 @@ import { GetLeagueAdminConfigQueryDTO } from './dtos/GetLeagueAdminConfigQueryDT
|
||||
import { GetLeagueProtestsQueryDTO } from './dtos/GetLeagueProtestsQueryDTO';
|
||||
import { GetLeagueSeasonsQueryDTO } from './dtos/GetLeagueSeasonsQueryDTO';
|
||||
import { GetLeagueWalletOutputDTO } from './dtos/GetLeagueWalletOutputDTO';
|
||||
import { TotalLeaguesDTO } from './dtos/TotalLeaguesDTO';
|
||||
import { WithdrawFromLeagueWalletInputDTO } from './dtos/WithdrawFromLeagueWalletInputDTO';
|
||||
import { WithdrawFromLeagueWalletOutputDTO } from './dtos/WithdrawFromLeagueWalletOutputDTO';
|
||||
|
||||
@@ -47,8 +48,8 @@ export class LeagueController {
|
||||
|
||||
@Get('total-leagues')
|
||||
@ApiOperation({ summary: 'Get the total number of leagues' })
|
||||
@ApiResponse({ status: 200, description: 'Total number of leagues', type: LeagueStatsDTO })
|
||||
async getTotalLeagues(): Promise<LeagueStatsDTO> {
|
||||
@ApiResponse({ status: 200, description: 'Total number of leagues', type: TotalLeaguesDTO })
|
||||
async getTotalLeagues(): Promise<TotalLeaguesDTO> {
|
||||
return this.leagueService.getTotalLeagues();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user