insane amount of work done during the snow storm

This commit is contained in:
Cipher Vance
2026-01-25 09:51:33 -06:00
parent 9c94dad41a
commit 0128193e04
23 changed files with 2495 additions and 457 deletions

View File

@@ -109,6 +109,19 @@ export const workoutLibraryApi = {
comment: comment || undefined
})
return data
},
// Schedule a library workout to a specific date
async scheduleToCalendar(workout, scheduledDate) {
const { data } = await api.post('/protected/workouts/schedule-template', {
template_id: workout.id,
template_name: workout.name,
template_type: workout.type,
duration: workout.duration,
scheduled_date: scheduledDate,
workout_data: workout.structure || null
})
return data
}
}