Add getTodaysChallenges returning array

This commit is contained in:
2026-03-14 19:56:12 -07:00
parent adcf7b07ac
commit 53e89df2a9
+7
View File
@@ -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,