feat: Add exercise details to API response

The code changes include adding the `exerciseId`, `shortDescription`, `path`, and `duration` fields to the API response for exercises. This provides more comprehensive information about each exercise to the client.

Note: The recent user commits and repository commits are not relevant for generating the commit message.
This commit is contained in:
SebasKoedam
2024-05-30 15:35:43 +02:00
parent 4bd1419a8b
commit e61ed86ea9
2 changed files with 7 additions and 3 deletions

View File

@@ -32,11 +32,15 @@ function handleIncoming(request, response, app, pool)
// Send back the data in the right format
let converted = rows.map(row => {
return {
exerciseId: row.ExerciseID,
name: row.Name,
description: row.Description,
muscleGroup: row.MuscleGroup,
shortDescription: row.ShortDescription,
description: row.Description,
imageUrl: row.ImageURL,
videoUrl: row.VideoURL
videoUrl: row.VideoURL,
path: row.Path,
duration: row.Duration
};
});