Merge branch 'master' into Max/Backend/loginApi
This commit is contained in:
@ -5,7 +5,6 @@ import org.springframework.http.HttpStatus;
|
||||
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import ovh.herisson.Clyde.Repositories.UserRepository;
|
||||
import ovh.herisson.Clyde.Responses.UnauthorizedResponse;
|
||||
import ovh.herisson.Clyde.Services.TokenService;
|
||||
import ovh.herisson.Clyde.Services.UserService;
|
||||
@ -20,7 +19,7 @@ public class UserController {
|
||||
|
||||
private final TokenService tokenService;
|
||||
public UserController(UserService userService, TokenService tokenService){
|
||||
this.userService =userService;
|
||||
this.userService = userService;
|
||||
this.tokenService = tokenService; // todo find a way to be clearer
|
||||
|
||||
tokenService.postMockToken(userService.postMockUsers());// todo find a better place to put that
|
||||
|
Reference in New Issue
Block a user