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 24c7838 commit 726f516
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/services/engine/handlers/gamegrp/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ func Routes(app *web.App, cfg Config) {
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))

app.Handle(http.MethodGet, version, "/game/:id/state", hdl.state, mid.Authenticate(cfg.Auth))
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/liar", hdl.callLiar, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/:id/reconcile", hdl.reconcile, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/state", hdl.state, mid.Authenticate(cfg.Auth))
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}/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}/next", hdl.nextTurn, mid.Authenticate(cfg.Auth))
app.Handle(http.MethodGet, version, "/game/{id}/out/:outs", hdl.updateOut, mid.Authenticate(cfg.Auth))
}

0 comments on commit 726f516

Please sign in to comment.