2 files changed, 2 insertions(+), 2 deletions(-)
R api/handlers/{gameinfo.go => gamedetails.go}
M api/main.go
R api/handlers/gameinfo.go => api/handlers/gamedetails.go +1 -1
@@ 17,7 17,7 @@ import (
"github.com/gin-gonic/gin"
)
-func GameInfo(c *gin.Context) {
+func GameDetails(c *gin.Context) {
id := c.Param("id")
// check if the game exists
M api/main.go => api/main.go +1 -1
@@ 56,7 56,7 @@ func createRouter() *gin.Engine {
}
game := api.Group("/game").Use(middlewares.Auth())
{
- game.GET("/:id", handlers.GameInfo)
+ game.GET("/:id", handlers.GameDetails)
game.GET("/forming", handlers.FormingGames)
game.POST("/", handlers.CreateGame)
game.PATCH("/:id/state", handlers.PatchGameState)