mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
15 lines
344 B
Go
15 lines
344 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
"gorm.io/gorm"
|
|
"github.com/nprasad2077/NBA_Go/controllers"
|
|
)
|
|
|
|
func RegisterGameRoutes(app *fiber.App, db *gorm.DB) {
|
|
// Create a new group for game-related endpoints
|
|
api := app.Group("/api/games")
|
|
|
|
// Register the GET endpoint to fetch games
|
|
api.Get("/", controllers.GetGames(db))
|
|
} |