22 lines
388 B
Go
22 lines
388 B
Go
package handlers
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/jackc/pgx/v5/pgxpool"
|
|
|
|
"gitea.d3m0k1d.ru/d3m0k1d/rostpoliplast/backend/internal/storage"
|
|
)
|
|
|
|
type Handlers struct {
|
|
DB *pgxpool.Pool
|
|
Repo *storage.Repository
|
|
}
|
|
|
|
func (h *Handlers) RegisterRoutes(r *gin.RouterGroup) {
|
|
baleHandlers := &BaleHandlers{
|
|
DB: h.DB,
|
|
Repo: h.Repo,
|
|
}
|
|
baleHandlers.RegisterRoutes(r)
|
|
}
|