summaryrefslogtreecommitdiff
path: root/app/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/app.go')
-rw-r--r--app/app.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/app.go b/app/app.go
index 95cd908..80ab9ce 100644
--- a/app/app.go
+++ b/app/app.go
@@ -12,15 +12,18 @@ import (
"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"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/domain"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/middleware"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web/middleware"
)
+type Mountable interface {
+ MountTo(*http.ServeMux)
+}
+
func New(rootDir string) http.Handler {
mux := ioc.MustResolve[*http.ServeMux](ioc.Default)
- mountable := []web.Mountable{
+ mountable := []Mountable{
ioc.MustResolve[*dashboard.Controller](ioc.Default),
ioc.MustResolve[*health.Controller](ioc.Default),
ioc.MustResolve[*sessions.Controller](ioc.Default),