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

15 lines
417 B
Go

package routes
import (
"github.com/gofiber/fiber/v2"
"gorm.io/gorm"
"github.com/nprasad2077/NBA_Go/controllers"
)
func RegisterPlayerAdvancedRoutes(app *fiber.App, db *gorm.DB) {
api := app.Group("/api/playeradvancedstats")
// api.Get("/fetch", controllers.FetchPlayerAdvancedStats(db))
api.Get("/scrape", controllers.ScrapePlayerAdvancedStats(db))
api.Get("/", controllers.GetAllAdvancedPlayerStats(db))
}