summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 10:56:48 -0600
committermo khan <mo@mokhan.ca>2025-04-25 10:56:48 -0600
commit33981e04bebe39c16d3bbb3af84c8772b00102fd (patch)
tree8f9b6f38684c519cafdbda647bb4b3f42fe872d9 /app/controllers
parente16a3ae2430b6186bad92fee75c4610f119770ff (diff)
refactor: move Repository interface to domain
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/sparkles/controller.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/sparkles/controller.go b/app/controllers/sparkles/controller.go
index 04eee12..bda7151 100644
--- a/app/controllers/sparkles/controller.go
+++ b/app/controllers/sparkles/controller.go
@@ -7,16 +7,15 @@ import (
"github.com/xlgmokha/x/pkg/mapper"
"github.com/xlgmokha/x/pkg/serde"
"github.com/xlgmokha/x/pkg/x"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/db"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/domain"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web/middleware"
)
type Controller struct {
- db db.Repository[*domain.Sparkle]
+ db domain.Repository[*domain.Sparkle]
}
-func New(db db.Repository[*domain.Sparkle]) *Controller {
+func New(db domain.Repository[*domain.Sparkle]) *Controller {
return &Controller{db: db}
}