mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 05:55:13 +00:00
games field fixes
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
func RegisterPlayerAdvancedRoutes(app *fiber.App, db *gorm.DB) {
|
||||
api := app.Group("/api/playeradvancedstats")
|
||||
|
||||
api.Get("/fetch", controllers.FetchPlayerAdvancedStats(db))
|
||||
// api.Get("/fetch", controllers.FetchPlayerAdvancedStats(db))
|
||||
api.Get("/scrape", controllers.ScrapePlayerAdvancedStats(db))
|
||||
api.Get("/", controllers.GetAllAdvancedPlayerStats(db))
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
// RegisterPlayerShotChartRoutes sets up the shot-chart endpoints
|
||||
func RegisterPlayerShotChartRoutes(app *fiber.App, db *gorm.DB) {
|
||||
api := app.Group("/api/playershotchart")
|
||||
api.Get("/fetch", controllers.FetchPlayerShotChartAPI(db))
|
||||
// api.Get("/fetch", controllers.FetchPlayerShotChartAPI(db))
|
||||
api.Get("/scrape", controllers.ScrapePlayerShotChart(db))
|
||||
api.Get("/", controllers.GetPlayerShotChart(db))
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
func RegisterPlayerTotalRoutes(app *fiber.App, db *gorm.DB) {
|
||||
api := app.Group("/api/playertotals")
|
||||
|
||||
api.Get("/fetch", controllers.FetchPlayerTotalStats(db))
|
||||
// api.Get("/fetch", controllers.FetchPlayerTotalStats(db))
|
||||
api.Get("/scrape", controllers.ScrapePlayerTotalStats(db))
|
||||
api.Get("/", controllers.GetPlayerTotalStats(db))
|
||||
}
|
||||
Reference in New Issue
Block a user