From 98b66c0ccc3e555879f8d68bd61ea573184e4b3c Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Wed, 26 Feb 2025 17:00:54 -0500 Subject: Removed getUsers method --- .../api/ufundapi/controller/UserController.java | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'ufund-api/src') diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java index 1af865d..a40c46f 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java @@ -54,27 +54,6 @@ public class UserController { } } - /** - * Responds to the GET request for all {@linkplain User user} - * - * @return ResponseEntity with array of {@link User user} objects (may be empty) - * and - * HTTP status of OK
- * ResponseEntity with HTTP status of INTERNAL_SERVER_ERROR otherwise - */ - @GetMapping("") - public ResponseEntity getUseers() { - LOG.info("GET /users"); - - try { - User[] users = UserDAO.getUsers(); - return new ResponseEntity<>(users, HttpStatus.OK); - } catch (IOException e) { - LOG.log(Level.SEVERE, e.getLocalizedMessage()); - return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); - } - } - /** * Responds to the GET request for a {@linkplain User user} for the given id * -- cgit v1.2.3