дописала get в контроллерах
This commit is contained in:
@@ -66,4 +66,6 @@ class FilmService(
|
||||
fun findByTitle(title: String): Film? = filmRepository.findByTitle(title)
|
||||
|
||||
fun findAll(): List<Film> = filmRepository.findAll()
|
||||
|
||||
fun findById(id: UUID): Film? = filmRepository.findById(id)
|
||||
}
|
||||
|
||||
@@ -57,4 +57,8 @@ class UserService(
|
||||
|
||||
userRepository.deleteById(id)
|
||||
}
|
||||
|
||||
fun findAll(): List<User> = userRepository.findAll()
|
||||
|
||||
fun findById(id: UUID): User? = userRepository.findById(id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user