ADD: team site and player/usermanagement is working
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"volleyball/internal/auth"
|
||||
"volleyball/internal/database"
|
||||
@@ -63,12 +64,16 @@ func main() {
|
||||
player.CreatePlayer(c, db.GetDB())
|
||||
})
|
||||
api.PUT("/players/:id", func(c *gin.Context) {
|
||||
log.Println("PUT /players/:id called", c.Params)
|
||||
player.UpdatePlayer(c, db.GetDB())
|
||||
})
|
||||
api.DELETE("/players/:id", func(c *gin.Context) {
|
||||
player.DeletePlayer(c, db.GetDB())
|
||||
// c.JSON(http.StatusOK, gin.H{"message": "Player deleted successfully"})
|
||||
})
|
||||
api.GET("/teams", func(c *gin.Context) {
|
||||
|
||||
})
|
||||
|
||||
port := os.Getenv("PORT")
|
||||
if port == "" {
|
||||
|
||||
Reference in New Issue
Block a user