ADD: added tournament creation without backend support

This commit is contained in:
hwinkel
2025-06-09 21:08:30 +02:00
parent 1a2eec44a9
commit 1e6babbf67
14 changed files with 332 additions and 34 deletions

View File

@@ -53,6 +53,9 @@ func main() {
api.GET("/players", func(c *gin.Context) {
player.GetPlayers(c, db.GetDB())
})
api.GET("/players/:id", func(c *gin.Context) {
player.GetPlayer(c, db.GetDB(), c.Param("id"))
})
api.POST("/players", func(c *gin.Context) {
player.CreatePlayer(c, db.GetDB())
})