ADD: added tournament creation without backend support
This commit is contained in:
@@ -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())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user