From fa7b51a709413a214fbd5157fe0f32138a889f0d Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 12 Dec 2024 15:05:26 +0100 Subject: feat: Filter private repository from the UI Now the whole application takes public into account. --- pkg/handler/router.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/handler/router.go') diff --git a/pkg/handler/router.go b/pkg/handler/router.go index 82ee8fd..8d27b74 100644 --- a/pkg/handler/router.go +++ b/pkg/handler/router.go @@ -34,6 +34,7 @@ func MountHandler( mux := ext.NewRouter() mux.AddMiddleware(ext.Compress) mux.AddMiddleware(ext.Log) + mux.AddMiddleware(ext.VerifyRespository(configRepo)) if configRepo.IsAuthEnabled() { mux.AddMiddleware(ext.Authenticate(authService)) -- cgit v1.2.3