website refactor
This commit is contained in:
@@ -46,12 +46,12 @@ function parseRaceDTOArray(value: unknown): RaceDTO[] {
|
||||
export class LeaguesApiClient extends BaseApiClient {
|
||||
/** Get all leagues with capacity information */
|
||||
getAllWithCapacity(): Promise<AllLeaguesWithCapacityDTO> {
|
||||
return this.get<AllLeaguesWithCapacityDTO>('/leagues/all-with-capacity');
|
||||
return this.get<AllLeaguesWithCapacityDTO>('/leagues/all-with-capacity', { retry: false });
|
||||
}
|
||||
|
||||
/** Get all leagues with capacity + scoring summary (for leagues page filters) */
|
||||
getAllWithCapacityAndScoring(): Promise<AllLeaguesWithCapacityAndScoringDTO> {
|
||||
return this.get<AllLeaguesWithCapacityAndScoringDTO>('/leagues/all-with-capacity-and-scoring');
|
||||
return this.get<AllLeaguesWithCapacityAndScoringDTO>('/leagues/all-with-capacity-and-scoring', { retry: false });
|
||||
}
|
||||
|
||||
/** Get total number of leagues */
|
||||
|
||||
Reference in New Issue
Block a user