mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
backend functioning. Player models init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"gorm.io/gorm"
|
||||
"github.com/nprasad2077/NBA_Go/controllers"
|
||||
)
|
||||
|
||||
func RegisterPlayerRoutes(app *fiber.App, db *gorm.DB) {
|
||||
api := app.Group("/api/playerstats")
|
||||
|
||||
api.Get("/fetch", controllers.FetchPlayerStats(db))
|
||||
api.Get("/", controllers.GetAllPlayerStats(db)) // ✅ Add this line
|
||||
}
|
||||
Reference in New Issue
Block a user