I have 2 endpoints as shown below, but I cannot use the endpoint urls like this:
@GetMapping("/{email}")
public ResponseEntity<Void> findByEmail(@PathVariable String email) {
}
@GetMapping("/{id}")
public ResponseEntity<Void> findById(@PathVariable long id) {
}
Should I use something like @GetMapping("mail/{email}")
?