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) } }