1
0
forked from PGL/Clyde

Merge branch 'master' into Max/Backend/loginApi

This commit is contained in:
2024-03-07 15:15:32 +01:00
9 changed files with 70 additions and 665 deletions

View File

@ -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