Class AuthController
java.lang.Object
it.astromark.authentication.controller.AuthController
-
Constructor Summary
ConstructorsConstructorDescriptionAuthController
(AuthenticationService authenticationService, JWTService jwtService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<String> org.springframework.http.ResponseEntity
<String> login
(@NotNull UserLoginRequest user) org.springframework.http.ResponseEntity
<String>
-
Constructor Details
-
AuthController
@Autowired public AuthController(AuthenticationService authenticationService, JWTService jwtService)
-
-
Method Details
-
login
@PostMapping("/login") public org.springframework.http.ResponseEntity<String> login(@NotNull @RequestBody @NotNull UserLoginRequest user) -
firstLogin
@PostMapping("/first-login") public org.springframework.http.ResponseEntity<String> firstLogin(@RequestBody UserFirstLoginRequest user) -
logout
-