diff --git a/src/api/snapshot.ts b/src/api/snapshot.ts index 9bab53c..89e3e11 100644 --- a/src/api/snapshot.ts +++ b/src/api/snapshot.ts @@ -36,7 +36,7 @@ export interface createSnapshotRes { export const createSnapshot = async (snapshot: snapshot): Promise => { try { - const res = await axiosInstance.post(`/pose-layouts`, { snapshot }) + const res = await axiosInstance.post(`/pose-layouts`, { points : snapshot.points }) const { id } = res.data.data return { id }