fix: redirect / to login UI (#4669)

This commit is contained in:
Livio Spring 2022-11-09 08:19:05 +01:00 committed by GitHub
parent f8e0cde0e9
commit 4eb8ad8777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ import (
internal_authz "github.com/zitadel/zitadel/internal/api/authz"
"github.com/zitadel/zitadel/internal/api/grpc/server"
http_util "github.com/zitadel/zitadel/internal/api/http"
"github.com/zitadel/zitadel/internal/api/ui/login"
"github.com/zitadel/zitadel/internal/errors"
"github.com/zitadel/zitadel/internal/query"
"github.com/zitadel/zitadel/internal/telemetry/metrics"
@ -48,6 +49,7 @@ func New(port uint16, router *mux.Router, queries *query.Queries, verifier *inte
api.routeGRPC()
api.RegisterHandler("/debug", api.healthHandler())
api.router.Handle("/", http.RedirectHandler(login.HandlerPrefix, http.StatusFound))
return api
}