comment blog

This commit is contained in:
hamid zarghami
2025-04-22 16:43:51 +03:30
parent 7e0ad19c91
commit b891a2dde6
8 changed files with 127 additions and 1 deletions
+12
View File
@@ -53,3 +53,15 @@ export const deleteBlog = async (id: string) => {
const { data } = await axios.delete(`/blogs/${id}`);
return data;
};
export const getBlogComments = async () => {
const { data } = await axios.get("/blogs/comments");
return data;
};
export const changeStatusComment = async (id: string, status: string) => {
const { data } = await axios.patch(`/blogs/comments/${id}/status`, {
status,
});
return data;
};