refactor(welcome): remove generic type from getRoles method
This commit is contained in:
parent
9824fbbbfd
commit
e5d0bcb84e
@ -19,7 +19,7 @@ public class WelcomeController {
|
||||
}
|
||||
|
||||
@GetMapping("/roles")
|
||||
public ResponseEntity<Collection<? extends GrantedAuthority>> getRoles(Authentication authentication) {
|
||||
public ResponseEntity getRoles(Authentication authentication) {
|
||||
return ResponseEntity.ok(authentication.getAuthorities());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user