makin look nice
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user