aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/imsonmia/epqapi/controller/UserController.java
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-01-17 23:50:06 +0200
committerZhongheng Liu <z.liu@outlook.com.gr>2024-01-17 23:50:06 +0200
commit2e73088d2a1604bc0ec77926c2c312cb86a6800a (patch)
treedc9777bb632a857d858eae667ca602d319a0bba5 /src/main/java/me/imsonmia/epqapi/controller/UserController.java
parent64b4b7e40473b40db9847c78a255e32fd7cdc6e5 (diff)
downloadepq-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.java20
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;
+ // }
}