Skip to content

Commit

Permalink
fixing routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ardan-bkennedy committed Oct 3, 2024
1 parent 726f516 commit b9ced5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/engine/handlers/gamegrp/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Routes(app *web.App, cfg Config) {

app.Handle(http.MethodGet, version, "/game/events", hdl.events, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/config", hdl.configuration)
app.Handle(http.MethodGet, version, "/game/usd2wei/:usd", hdl.usd2Wei)
app.Handle(http.MethodGet, version, "/game/usd2wei/{usd}", hdl.usd2Wei)
app.Handle(http.MethodGet, version, "/game/new", hdl.newGame, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/balance", hdl.balance, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/tables", hdl.tables, mid.Authenticate(cfg.Auth))
Expand All @@ -59,11 +59,11 @@ func Routes(app *web.App, cfg Config) {
app.Handle(http.MethodGet, version, "/game/{id}/join", hdl.join, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/start", hdl.startGame, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/rolldice", hdl.rollDice, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/bet/:number/:suit", hdl.bet, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/bet/{number}/{suit}", hdl.bet, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/liar", hdl.callLiar, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/reconcile", hdl.reconcile, mid.Authenticate(cfg.Auth))

// Timeout Situations with a player
app.Handle(http.MethodGet, version, "/game/{id}/next", hdl.nextTurn, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/out/:outs", hdl.updateOut, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/out/{outs}", hdl.updateOut, mid.Authenticate(cfg.Auth))
}

0 comments on commit b9ced5c

Please sign in to comment.