Try ToList to mutable list
continuous-integration/drone/push Build was killed Details

pull/4/head
luevard 1 year ago
parent 4d95eed46d
commit 2feeb586e0

@ -33,19 +33,7 @@ fun Application.BetRouter(){
route("/bets/gets"){ route("/bets/gets"){
get{ get{
// if(bets.size>0) // if(bets.size>0)
call.respond(HttpStatusCode.Accepted, "{\n" + call.respond(HttpStatusCode.Accepted, bets.toList())
" \"id\": 0,\n" +
" \"theme\": \"Computer Science\",\n" +
" \"sentenceBet\": \"When the TP of CI/CD have to be finished ?\",\n" +
" \"endRegistration\": \"2023-10-01 18:30:00\",\n" +
" \"endBet\": \"2023-10-01 18:30:00\",\n" +
" \"isPrivate\": true,\n" +
" \"response\": [\n" +
" \"ok\",\n" +
" \"lol\"\n" +
" ],\n" +
" \"createdBy\": \"test\"\n" +
"}")
// else call.respond(HttpStatusCode.NoContent) // else call.respond(HttpStatusCode.NoContent)
} }
} }

Loading…
Cancel
Save