Closed CheoR closed 3 years ago
User can delete their post.
Closes #14
In server terminal
server
git fetch --all git checkout cr-post-delete watchgod request_handler.main
git fetch --all
git checkout cr-post-delete
watchgod request_handler.main
If no posts for logged-in user created yet
INSERT INTO Posts ( "user_id", "category_id", "title", "publication_date", "image_url", "content", "approved" ) VALUES( 2, 1, 'Delete This Post', DATETIME(), '', 'Post to Delete', true );
Either in the browser or through postman, delete the post. In browser, user will be redirected to /posts/user/${user_id}.
/posts/user/${user_id}
Description
User can delete their post.
Closes #14
Type of change
Testing Instructions
In
server
terminalgit fetch --all
git checkout cr-post-delete
watchgod request_handler.main
If no posts for logged-in user created yet
Either in the browser or through postman, delete the post. In browser, user will be redirected to
/posts/user/${user_id}
.Checklist: