diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-14 16:10:01 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-14 16:10:01 -0600 |
| commit | a8c6e1a4aee4a616cd7c73a39e579d7c9b63d720 (patch) | |
| tree | ae14a445308299be1addc51b1c4377735a9a8f52 /app/app.go | |
| parent | efc3c293f472a6993ca086fa335daf3719c6922a (diff) | |
feat: connect the sessions controller into the app
Diffstat (limited to 'app/app.go')
| -rw-r--r-- | app/app.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,8 +5,8 @@ import ( "github.com/xlgmokha/x/pkg/ioc" "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" - "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/db" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web" ) @@ -14,8 +14,9 @@ func New() http.Handler { mux := ioc.MustResolve[*http.ServeMux](ioc.Default) mountable := []web.Mountable{ - sparkles.New(ioc.MustResolve[db.Repository](ioc.Default)), - health.New(), + ioc.MustResolve[*sparkles.Controller](ioc.Default), + ioc.MustResolve[*sessions.Controller](ioc.Default), + ioc.MustResolve[*health.Controller](ioc.Default), } for _, m := range mountable { m.MountTo(mux) |
