Browse Source

fix kube event id as chi param

Alexander Belanger 4 years ago
parent
commit
3e46914f80
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/server/router/cluster.go

+ 2 - 2
api/server/router/cluster.go

@@ -542,7 +542,7 @@ func getClusterRoutes(
 			Method: types.HTTPVerbGet,
 			Path: &types.Path{
 				Parent:       basePath,
-				RelativePath: fmt.Sprintf("%s/kube_events/%s", relPath, types.URLParamKubeEventID),
+				RelativePath: fmt.Sprintf("%s/kube_events/{%s}", relPath, types.URLParamKubeEventID),
 			},
 			Scopes: []types.PermissionScope{
 				types.UserScope,
@@ -571,7 +571,7 @@ func getClusterRoutes(
 			Method: types.HTTPVerbGet,
 			Path: &types.Path{
 				Parent:       basePath,
-				RelativePath: fmt.Sprintf("%s/kube_events/%s/logs", relPath, types.URLParamKubeEventID),
+				RelativePath: fmt.Sprintf("%s/kube_events/{%s}/logs", relPath, types.URLParamKubeEventID),
 			},
 			Scopes: []types.PermissionScope{
 				types.UserScope,