Skip to content

Commit

Permalink
TODO: think about personal-vs-all
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts committed Mar 26, 2022
1 parent 386dd8e commit 9851181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func WithWorkspaceProjection(apiHandler http.Handler) http.HandlerFunc {

toRedirectPath := path.Join("/apis", tenancyv1beta1.SchemeGroupVersion.Group, tenancyv1beta1.SchemeGroupVersion.Version, "workspaces/")
if strings.HasPrefix(req.URL.Path, toRedirectPath) {
newPath := path.Join("/services/workspaces", cluster.Name.String(), "all", req.URL.Path)
newPath := path.Join("/services/workspaces", cluster.Name.String(), "personal", req.URL.Path)
klog.Infof("Rewriting %s -> %s", path.Join(cluster.Name.Path(), req.URL.Path), newPath)
req.URL.Path = newPath
}
Expand Down

0 comments on commit 9851181

Please sign in to comment.