added routing for viewing all posts, show posts for category, edit posts, and deleting posts
cleaned up routing by incorporating put and get methods