aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/game/http.go4
-rw-r--r--backend/main.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/game/http.go b/backend/game/http.go
index 18f6cda..f9036c5 100644
--- a/backend/game/http.go
+++ b/backend/game/http.go
@@ -27,7 +27,7 @@ func (h *sockHandler) HandleSockGolfPlay(c echo.Context) error {
}
// TODO: check user permission
- gameID, err := strconv.Atoi(c.Param("gameId"))
+ gameID, err := strconv.Atoi(c.Param("gameID"))
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, "Invalid game id")
}
@@ -48,7 +48,7 @@ func (h *sockHandler) HandleSockGolfWatch(c echo.Context) error {
return echo.NewHTTPError(http.StatusForbidden, "Permission denied")
}
- gameID, err := strconv.Atoi(c.Param("gameId"))
+ gameID, err := strconv.Atoi(c.Param("gameID"))
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, "Invalid game id")
}
diff --git a/backend/main.go b/backend/main.go
index 0257113..939df03 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -65,10 +65,10 @@ func main() {
defer gameHubs.Close()
sockGroup := e.Group("/sock")
sockHandler := gameHubs.SockHandler()
- sockGroup.GET("/golf/:gameId/play", func(c echo.Context) error {
+ sockGroup.GET("/golf/:gameID/play", func(c echo.Context) error {
return sockHandler.HandleSockGolfPlay(c)
})
- sockGroup.GET("/golf/:gameId/watch", func(c echo.Context) error {
+ sockGroup.GET("/golf/:gameID/watch", func(c echo.Context) error {
return sockHandler.HandleSockGolfWatch(c)
})