Add stub bet
continuous-integration/drone/push Build is passing Details

pull/4/head
luevard 1 year ago
parent 793d6ac286
commit 4d95eed46d

@ -32,9 +32,21 @@ fun Application.BetRouter(){
} }
route("/bets/gets"){ route("/bets/gets"){
get{ get{
if(bets.size>0) // if(bets.size>0)
call.respond(HttpStatusCode.Accepted, bets) call.respond(HttpStatusCode.Accepted, "{\n" +
else call.respond(HttpStatusCode.NoContent) " \"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)
} }
} }
route("/bets/delete"){ route("/bets/delete"){

Loading…
Cancel
Save