Files
NBA_Go/routes/player_shot_chart_routes.go
T
2025-06-03 20:28:46 -05:00

15 lines
496 B
Go

package routes
import (
"github.com/gofiber/fiber/v2"
"github.com/nprasad2077/NBA_Go/controllers"
"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.FetchPlayerShotChartAPI(db))
api.Get("/scrape", controllers.ScrapePlayerShotChart(db))
api.Get("/", controllers.GetPlayerShotChart(db))
}