makin look nice
This commit is contained in:
@@ -51,7 +51,7 @@ function prevPost() {
|
|||||||
async function deletePost() {
|
async function deletePost() {
|
||||||
try {
|
try {
|
||||||
const res = await axios.delete(
|
const res = await axios.delete(
|
||||||
`/api/post/${encodeURIComponent(post.value.ID)}`,
|
`/api/posts/${encodeURIComponent(post.value.ID)}`,
|
||||||
);
|
);
|
||||||
console.log("Deleted:", res.data);
|
console.log("Deleted:", res.data);
|
||||||
fetchPosts();
|
fetchPosts();
|
||||||
|
|||||||
Reference in New Issue
Block a user