@@ -54,12 +54,5 @@ public class PostService {
return new ResponseEntity<>(HttpStatus.OK);
}
-
-// public ResponseEntity<User> addpost(Long userId, Post post) {
-// User user = findUserById(userId).getBody();
-// List<Post> posts = user.getPosts();
-// posts.add(post);
-// return new ResponseEntity<>(userRepository.save(user), HttpStatus.OK);
-// }