дописала security

This commit is contained in:
Elena Ponomareva
2026-05-14 21:00:46 +03:00
committed by skettiks
parent a10737a7f7
commit 82a0cec1cc
8 changed files with 146 additions and 52 deletions
@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.ResponseStatus
import org.springframework.web.bind.annotation.RestController
//import com.project.movienight.adapters.security.UserPrincipal
import java.util.UUID
@RestController
@@ -73,4 +74,12 @@ class UserController(
fun delete(
@PathVariable id: UUID,
) = deleteUserUseCase.delete(id)
/*
@GetMapping("/me")
fun getCurrentUser(principal: UserPrincipal): UserResponse =
UserResponse.fromDomain(
getUserByIdUseCase.getById(principal.getId())
)
*/
}