Created posts controller to index all posts and comments