summaryrefslogtreecommitdiff
path: root/app/init.go
diff options
context:
space:
mode:
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))
})