diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-01-17 23:50:06 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-01-17 23:50:06 +0200 |
commit | 2e73088d2a1604bc0ec77926c2c312cb86a6800a (patch) | |
tree | dc9777bb632a857d858eae667ca602d319a0bba5 /src/main/java/me/imsonmia/epqapi/controller/UserController.java | |
parent | 64b4b7e40473b40db9847c78a255e32fd7cdc6e5 (diff) | |
download | epq-api-2e73088d2a1604bc0ec77926c2c312cb86a6800a.tar.gz epq-api-2e73088d2a1604bc0ec77926c2c312cb86a6800a.tar.bz2 epq-api-2e73088d2a1604bc0ec77926c2c312cb86a6800a.zip |
purged or commented out redundant code
Diffstat (limited to 'src/main/java/me/imsonmia/epqapi/controller/UserController.java')
-rw-r--r-- | src/main/java/me/imsonmia/epqapi/controller/UserController.java | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/main/java/me/imsonmia/epqapi/controller/UserController.java b/src/main/java/me/imsonmia/epqapi/controller/UserController.java index ffdfdf8..8a29082 100644 --- a/src/main/java/me/imsonmia/epqapi/controller/UserController.java +++ b/src/main/java/me/imsonmia/epqapi/controller/UserController.java @@ -4,8 +4,6 @@ import java.time.Instant; import java.util.ArrayList; import java.util.Optional; -import javax.swing.text.html.Option; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; @@ -87,13 +85,13 @@ public class UserController { } return messages; } - - @PatchMapping("/user/{id}") - boolean changeUserProperties(@PathVariable(value = "id") Long userId, @RequestBody User newUser) { - if (!userRepository.existsById(userId)) { - return false; - } - userRepository.save(newUser); - return true; - } + // @PatchMapping("/user/{id}") + // boolean changeUserProperties(@PathVariable(value = "id") Long userId, + // @RequestBody User newUser) { + // if (!userRepository.existsById(userId)) { + // return false; + // } + // userRepository.save(newUser); + // return true; + // } } |