DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

26b518b0d4a5e247be3198d41604c5de8976f5af — Jonni Liljamo 1 year, 10 months ago 8ae1544
feat(sdbapi): return EndedAt from gameinfo
1 files changed, 1 insertions(+), 1 deletions(-)

M sdbapi/handlers/gameinfo.go
M sdbapi/handlers/gameinfo.go => sdbapi/handlers/gameinfo.go +1 -1
@@ 29,5 29,5 @@ func GameInfo(c *gin.Context) {
		return
	}

	c.JSON(http.StatusOK, gin.H{"id": game.ID, "state": game.State, "p1": game.P1, "p2": game.P2})
	c.JSON(http.StatusOK, gin.H{"id": game.ID, "state": game.State, "p1": game.P1, "p2": game.P2, "ended_at": game.EndedAt})
}