mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-11-21 01:28:06 +00:00
Start to delete posts
This commit is contained in:
@@ -263,5 +263,9 @@ pub fn update_content(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
|
||||
/// Delete a post
|
||||
pub fn delete(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
r.success("Implement me")
|
||||
let post = r.post_post_with_access("postID", PostAccessLevel::FULL_ACCESS)?;
|
||||
|
||||
posts_helper::delete(&post)?;
|
||||
|
||||
r.success("Post deleted.")
|
||||
}
|
||||
Reference in New Issue
Block a user