Files
2026-09-15 09:15:53 -05:00

17 lines
296 B
Go

package handlers
import (
"github.com/gin-gonic/gin"
"jp.wtf/go-fishing/internal/db"
v1 "jp.wtf/go-fishing/internal/handlers/v1"
)
type Env struct {
DB *db.Database
}
func (env *Env) RegisterRoutes(rg *gin.RouterGroup) {
v1Router := v1.V1Router{DB: env.DB}
v1Router.RegisterRoutes(rg)
}