Created
October 23, 2019 13:42
-
-
Save digimon1740/798d84c496916343de476c4304a17e0a 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
val addUserDocs = document() | |
.body() | |
.result("400") | |
.result("204") | |
fun addUserHandler(ctx: Context) { | |
val user = ctx.body() | |
UserRepository.addUser(user) | |
ctx.status(204) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment