summaryrefslogtreecommitdiff
path: root/app/init.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-15 17:54:43 -0600
committermo khan <mo@mokhan.ca>2025-04-15 17:54:43 -0600
commitb7ff80b7be532f4bb64c1daf8cef3462f9938362 (patch)
tree3d88661d72339be3fc81425b6d4397bcc8e8c603 /app/init.go
parent655fb6c4cc180dfcbc13c1b85e0fbf47019caec0 (diff)
feat: connect a blank dashboard controller
Diffstat (limited to 'app/init.go')
-rw-r--r--app/init.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/init.go b/app/init.go
index f35c2d6..8ef0602 100644
--- a/app/init.go
+++ b/app/init.go
@@ -8,6 +8,7 @@ import (
"github.com/xlgmokha/x/pkg/env"
"github.com/xlgmokha/x/pkg/ioc"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/controllers/dashboard"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/controllers/health"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/controllers/sessions"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/controllers/sparkles"
@@ -34,6 +35,9 @@ func init() {
ioc.RegisterSingleton[*http.ServeMux](ioc.Default, func() *http.ServeMux {
return http.NewServeMux()
})
+ ioc.Register[*dashboard.Controller](ioc.Default, func() *dashboard.Controller {
+ return dashboard.New()
+ })
ioc.Register[*sparkles.Controller](ioc.Default, func() *sparkles.Controller {
return sparkles.New(ioc.MustResolve[db.Repository](ioc.Default))
})