fix: create post
This commit is contained in:
@@ -13,4 +13,14 @@ export const postService = {
|
||||
getPost(id) {
|
||||
return httpClient.get(`/admin/posts/${id}`);
|
||||
},
|
||||
};
|
||||
createPost(post) {
|
||||
return httpClient.post('/admin/posts', post);
|
||||
},
|
||||
|
||||
updatePost(id, post) {
|
||||
return httpClient.put(`/admin/posts/${id}`, post);
|
||||
},
|
||||
deletePost(id) {
|
||||
return httpClient.delete(`/admin/posts/${id}`);
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user