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

@@ -14,8 +14,13 @@ import java.util.List;
@RestController
@RequestMapping("/incomes")
public class IncomeController {
private final IncomeService incomeService;
@Autowired
private IncomeService incomeService;
public IncomeController(IncomeService incomeService) {
this.incomeService = incomeService;
}
@GetMapping("/user/{userUuid}")
public ResponseEntity<List<Income>> getIncomesByUser(@PathVariable String userUuid) {