Skip to content

Commit 4966e76

Browse files
committed
adjusted pathvariable annotation
1 parent 20588ad commit 4966e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/grouptwelve/grouptwelveBE/controller/Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public List<User> getAllUsers() {
5353
}
5454

5555
@GetMapping("/users/email/{email}") // GET 3
56-
public User getUsersByEmail(@PathVariable String email) {
56+
public User getUsersByEmail(@PathVariable("email") String email) {
5757
return userRepository.findByEmail(email);
5858
}
5959

0 commit comments

Comments
 (0)