Test openapi schema of route /votes/*

This commit is contained in:
2021-03-22 20:28:53 +01:00
parent 5ef2345ea6
commit b04408219d
9 changed files with 254 additions and 12 deletions

View File

@@ -38,7 +38,10 @@ object PutVoteOnArticle {
)
ac.assert { canCreate(vote, citizenOrNull) }
val votes = repo.vote(vote)
call.respond(HttpStatusCode.Created, votes)
call.respond(
HttpStatusCode.Created,
votes.toOutput()
)
}
}
}