From b7ff80b7be532f4bb64c1daf8cef3462f9938362 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 15 Apr 2025 17:54:43 -0600 Subject: feat: connect a blank dashboard controller --- app/init.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/init.go') 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)) }) -- cgit v1.2.3