20 lines
323 B
Go
20 lines
323 B
Go
package api
|
|
|
|
import (
|
|
"cockpit/internal/auth"
|
|
"cockpit/internal/config"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Handler struct {
|
|
cfg *config.Config
|
|
db *gorm.DB
|
|
authSvc *auth.Service
|
|
}
|
|
|
|
func NewHandler(cfg *config.Config, db *gorm.DB, authSvc *auth.Service) *Handler {
|
|
return &Handler{cfg: cfg, db: db, authSvc: authSvc}
|
|
}
|
|
|