mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 05:55:13 +00:00
shot chart service and models update
This commit is contained in:
@@ -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))
|
||||
}
|
||||
@@ -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))
|
||||
}
|
||||
Reference in New Issue
Block a user