Created
October 22, 2017 17:11
-
-
Save AlexeySoshin/e29507d9cccc60124ad7b78377cb2510 to your computer and use it in GitHub Desktop.
This file contains 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
@GetMapping("/{id}") | |
fun getCat(@PathVariable id : String) : Cat { | |
return cats[UUID.fromString(id)] ?: throw CatNotFoundException() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment