diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-02-26 17:00:54 -0500 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-02-26 17:00:54 -0500 |
commit | 98b66c0ccc3e555879f8d68bd61ea573184e4b3c (patch) | |
tree | ee640dc0ff9e616ff4526aae774aa869c5fd32e7 /ufund-api/src/main/java/com/ufund/api/ufundapi | |
parent | 173ebb5f2efb328f96cbd17d8bbe4acc07e74b84 (diff) | |
download | JellySolutions-98b66c0ccc3e555879f8d68bd61ea573184e4b3c.tar.gz JellySolutions-98b66c0ccc3e555879f8d68bd61ea573184e4b3c.tar.bz2 JellySolutions-98b66c0ccc3e555879f8d68bd61ea573184e4b3c.zip |
Removed getUsers method
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java | 21 |
1 files changed, 0 insertions, 21 deletions
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 @@ -55,27 +55,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<br> - * ResponseEntity with HTTP status of INTERNAL_SERVER_ERROR otherwise - */ - @GetMapping("") - public ResponseEntity<User[]> 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 * * @param id The id used to locate the {@link User user} |