Last active
June 2, 2017 17:05
-
-
Save ssouris/65fea29cea6a1131fed12bb97ac75fc2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun goToOwnersIndex() : Mono<ServerResponse> { | |
return ok().html().render("owners/index", | |
mapOf("owners" to ownersRepository.findAll().map { Pair(it, emptySet<Pet>()) }, | |
"pets" to petRepository.findAll().collectMultimap { it.owner })) | |
} | |
// using type inference | |
fun goToOwnersIndex() = ok().html().render("owners/index", | |
mapOf("owners" to ownersRepository.findAll().map { Pair(it, emptySet<Pet>()) }, | |
"pets" to petRepository.findAll().collectMultimap { it.owner })) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment