refactor(welcome): remove generic type from getRoles method
This commit is contained in:
parent
9824fbbbfd
commit
e5d0bcb84e
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public class WelcomeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/roles")
|
@GetMapping("/roles")
|
||||||
public ResponseEntity<Collection<? extends GrantedAuthority>> getRoles(Authentication authentication) {
|
public ResponseEntity getRoles(Authentication authentication) {
|
||||||
return ResponseEntity.ok(authentication.getAuthorities());
|
return ResponseEntity.ok(authentication.getAuthorities());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue