chore: add first handlers

This commit is contained in:
d3m0k1d
2026-04-29 12:59:23 +03:00
parent d0028cdd32
commit 56a8bfa766
8 changed files with 146 additions and 80 deletions
+21
View File
@@ -0,0 +1,21 @@
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)
}