Add get bets route
continuous-integration/drone/push Build is passing Details

pull/4/head
luevard 1 year ago
parent 3bce3356e7
commit b387744284

@ -30,6 +30,11 @@ fun Application.BetRouter(){
call.respond(HttpStatusCode.Conflict,"Bet already exist")
}
}
route("/bets/gets"){
get{
call.respond(HttpStatusCode.Accepted, bets)
}
}
route("/bets/delete"){
post{
val idbet = call.receive<Map<String, Int>>()["id"]

Loading…
Cancel
Save