diff --git a/nginx/vue/src/components/home/Feed.vue b/nginx/vue/src/components/home/Feed.vue index 0940276..b982b6c 100644 --- a/nginx/vue/src/components/home/Feed.vue +++ b/nginx/vue/src/components/home/Feed.vue @@ -51,7 +51,7 @@ function prevPost() { async function deletePost() { try { const res = await axios.delete( - `/api/posts/${encodeURIComponent(post.value.ID)}`, + `/api/posts/${encodeURIComponent(post.value.id)}`, ); console.log("Deleted:", res.data); fetchPosts();