Exercise management enhanced

This commit is contained in:
aodulov
2025-11-26 09:07:29 +02:00
parent e28ddccd7f
commit 6d08c2cf11
8 changed files with 211 additions and 169 deletions

View File

@@ -72,6 +72,7 @@ router.post('/', async (req: any, res) => {
// Create new
const newExercise = await prisma.exercise.create({
data: {
id: id || undefined, // Use provided ID if available
userId,
name,
type,