From 726f516fc3bf02ef23d2b79d376f61b5f19973ae Mon Sep 17 00:00:00 2001 From: William Kennedy Date: Thu, 3 Oct 2024 16:10:03 -0400 Subject: [PATCH] fixing routes --- app/services/engine/handlers/gamegrp/route.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/services/engine/handlers/gamegrp/route.go b/app/services/engine/handlers/gamegrp/route.go index 7577369f..a7bea5ba 100644 --- a/app/services/engine/handlers/gamegrp/route.go +++ b/app/services/engine/handlers/gamegrp/route.go @@ -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)) }