optimize code

This commit is contained in:
mirrerror
2023-10-02 08:26:18 +03:00
parent 32066bb47a
commit 336359f267
6 changed files with 32 additions and 6 deletions

View File

@@ -13,8 +13,12 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/users")
public class UserController {
private final UserService userService;
@Autowired
private UserService userService;
public UserController(UserService userService) {
this.userService = userService;
}
@GetMapping("/{userUuid}")
public ResponseEntity<User> getUser(@PathVariable String userUuid) {