Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Make both /ui/?query= and /ui?query= work #649

Merged
merged 3 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (a *API) RegisterAPI(statusService statusv1.StatusServiceServer) error {
// All assets are served as static files
a.RegisterRoutesWithPrefix("/ui/assets/", http.StripPrefix("/ui/", http.FileServer(uiAssets)), false, true, "GET")
// Serve index to all other pages
a.RegisterRoutesWithPrefix("/ui/", uiIndexHandler, false, true, "GET")
a.RegisterRoutesWithPrefix("/ui", uiIndexHandler, false, true, "GET")

// register status service providing config and buildinfo at grpc gateway
if err := statusv1.RegisterStatusServiceHandlerServer(context.Background(), a.grpcGatewayMux, statusService); err != nil {
Expand Down