Initial commit

This commit is contained in:
MaxJa4
2024-01-14 22:06:53 +01:00
commit fe92068ad3
30 changed files with 1067 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package controllers
import (
"InfrantrySkillCalculator/models"
"github.com/gin-gonic/gin"
"net/http"
)
// GetAllPlayers GET /player
func GetAllPlayers(c *gin.Context) {
var players []models.Player
models.DB.Find(&players)
c.JSON(http.StatusOK, players)
}