shot chart service and models update

This commit is contained in:
Ravi Prasad
2025-05-13 22:10:42 -05:00
parent 5f67c07579
commit cdf5cf4cd2
14 changed files with 3117 additions and 115 deletions
+2 -1
View File
@@ -10,5 +10,6 @@ func RegisterPlayerAdvancedRoutes(app *fiber.App, db *gorm.DB) {
api := app.Group("/api/playeradvancedstats")
api.Get("/fetch", controllers.FetchPlayerAdvancedStats(db))
api.Get("/", controllers.GetAllAdvancedPlayerStats(db)) // ✅ Add this line
api.Get("/scrape", controllers.ScrapePlayerAdvancedStats(db))
api.Get("/", controllers.GetAllAdvancedPlayerStats(db))
}
+4 -2
View File
@@ -6,8 +6,10 @@ import (
"gorm.io/gorm"
)
// RegisterPlayerShotChartRoutes sets up the shot-chart endpoints
func RegisterPlayerShotChartRoutes(app *fiber.App, db *gorm.DB) {
api := app.Group("/api/playershotchart")
api.Get("/fetch", controllers.FetchPlayerShotChart(db))
api.Get("/", controllers.GetPlayerShotChart(db))
api.Get("/fetch", controllers.FetchPlayerShotChartAPI(db))
api.Get("/scrape", controllers.ScrapePlayerShotChart(db))
api.Get("/", controllers.GetPlayerShotChart(db))
}