refactor: Fix some code smells #26
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue