Add getTodaysChallenges returning array
This commit is contained in:
@@ -26,6 +26,13 @@ export async function getTodaysChallenge(): Promise<DailyChallenge> {
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function getTodaysChallenges(): Promise<DailyChallenge[]> {
|
||||
const { data } = await apiClient.get<DailyChallenge[]>(
|
||||
'/daily-challenges/today',
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function getChallengeHistory(
|
||||
page = 1,
|
||||
limit = 20,
|
||||
|
||||
Reference in New Issue
Block a user