DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

f79dbd396541fa9005cb5f113c8e864960aa1f61 — Jonni Liljamo 1 year, 8 months ago e9a1824
feat(api): rename GameInfo to GameDetails
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)