File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/main/java/org/airpenthouse/GoTel/controllers Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 11package org .airpenthouse .GoTel .controllers ;
22
3- import org .airpenthouse .GoTel .dtos .countApiUsers .CountApiUsersRequest ;
43import org .airpenthouse .GoTel .util .CountApiUsers ;
5- import org .airpenthouse .GoTel .util .mappers .CountApiUsersMapper ;
6- import org .springframework .beans .factory .annotation .Autowired ;
74import org .springframework .http .ResponseEntity ;
85import org .springframework .web .bind .annotation .CrossOrigin ;
96import org .springframework .web .bind .annotation .GetMapping ;
1714@ CrossOrigin (origins ="http://localhost:4200" )
1815public class CountApiUsersController extends CountApiUsers {
1916
20- @ Autowired
21- private CountApiUsersMapper mapper ;
22-
2317
2418 @ GetMapping ("/" )
25- public ResponseEntity <List <CountApiUsersRequest >> getAllCounts () {
26- var entities = prepareToGetAllCounties (). stream (). map ( mapper :: toDto ). toList () ;
19+ public ResponseEntity <List <CountApiUsers >> getAllCounts () {
20+ var entities = prepareToGetAllCounties ();
2721 if (entities .isEmpty ()) {
2822 return ResponseEntity .notFound ().build ();
2923 } else {
You can’t perform that action at this time.
0 commit comments