diff options
| -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}  | 
