summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/controller.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
committermo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
commit786c4d2cd0860032e2624cadbbf54891d4269ae2 (patch)
tree3ad2aa0e298d97b431982183224c1e8c6a7ed817 /app/controllers/dashboard/controller.go
parent8836d0744aed44435e35af78d7533ff09db0c62e (diff)
refactor: move key pacakge to cfg
Diffstat (limited to 'app/controllers/dashboard/controller.go')
-rw-r--r--app/controllers/dashboard/controller.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/dashboard/controller.go b/app/controllers/dashboard/controller.go
index a1d1bbf..ef5b18d 100644
--- a/app/controllers/dashboard/controller.go
+++ b/app/controllers/dashboard/controller.go
@@ -4,9 +4,9 @@ import (
"net/http"
"github.com/xlgmokha/x/pkg/log"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/cfg"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/middleware"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/views"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/key"
)
type Controller struct {
@@ -23,7 +23,7 @@ func (c *Controller) MountTo(mux *http.ServeMux) {
}
func (c *Controller) Show(w http.ResponseWriter, r *http.Request) {
- currentUser := key.CurrentUser.From(r.Context())
+ currentUser := cfg.CurrentUser.From(r.Context())
w.WriteHeader(http.StatusOK)
w.Header().Add("Content-Type", "text/html")