refactor: Fix some code smells #26
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