From 2feeb586e09670608227f4f39e0d869a41e06114 Mon Sep 17 00:00:00 2001 From: luevard <99143550+saucepommefrite@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:07:14 +0100 Subject: [PATCH] :sparkles: Try ToList to mutable list --- Sources/src/main/kotlin/allin/routing/BetRouter.kt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Sources/src/main/kotlin/allin/routing/BetRouter.kt b/Sources/src/main/kotlin/allin/routing/BetRouter.kt index be2de86..997cee5 100644 --- a/Sources/src/main/kotlin/allin/routing/BetRouter.kt +++ b/Sources/src/main/kotlin/allin/routing/BetRouter.kt @@ -33,19 +33,7 @@ fun Application.BetRouter(){ route("/bets/gets"){ get{ // if(bets.size>0) - call.respond(HttpStatusCode.Accepted, "{\n" + - " \"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" + - "}") + call.respond(HttpStatusCode.Accepted, bets.toList()) // else call.respond(HttpStatusCode.NoContent) } }