From a8c6e1a4aee4a616cd7c73a39e579d7c9b63d720 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Apr 2025 16:10:01 -0600 Subject: feat: connect the sessions controller into the app --- app/app.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/app.go') diff --git a/app/app.go b/app/app.go index 0d3dd05..ad33d97 100644 --- a/app/app.go +++ b/app/app.go @@ -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) -- cgit v1.2.3