Im trying to get a post request with a post body through a route using some thing like the below but it always fails. Does this methodology only work for params in the url?
Copy code
@location("/poll/{pollId}/vote")
data class PollAddVote(
val pollId: String,
val choiceId: String? = null,
val upvote: Boolean? = false,
val downvote: Boolean? = false
) : Params