Complete UI/UX overhaul: Polished login, fixed mood tracking, enhanced animations, and verified full-stack flows
This commit is contained in:
@@ -135,11 +135,21 @@ export const gratitudeAPI = {
|
||||
// Progress API
|
||||
export const progressAPI = {
|
||||
async getProgressStats() {
|
||||
return await apiCall('/progress/stats');
|
||||
return await apiCall('/dashboard/stats');
|
||||
},
|
||||
|
||||
async getProgressHistory() {
|
||||
return await apiCall('/progress/history');
|
||||
async getProgressHistory(days = 30) {
|
||||
return await apiCall(`/progress?days=${days}`);
|
||||
}
|
||||
};
|
||||
|
||||
// Exercise API
|
||||
export const exerciseAPI = {
|
||||
async logSession(type, duration) {
|
||||
return await apiCall('/exercises', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ exerciseType: type, duration })
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user