aboutsummaryrefslogtreecommitdiff
path: root/weed/admin/handlers/cluster_handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/admin/handlers/cluster_handlers.go')
-rw-r--r--weed/admin/handlers/cluster_handlers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/admin/handlers/cluster_handlers.go b/weed/admin/handlers/cluster_handlers.go
index 515cdaecb..3c4107533 100644
--- a/weed/admin/handlers/cluster_handlers.go
+++ b/weed/admin/handlers/cluster_handlers.go
@@ -68,9 +68,10 @@ func (h *ClusterHandlers) ShowClusterVolumes(c *gin.Context) {
sortBy := c.DefaultQuery("sortBy", "id")
sortOrder := c.DefaultQuery("sortOrder", "asc")
+ collection := c.Query("collection") // Optional collection filter
// Get cluster volumes data
- volumesData, err := h.adminServer.GetClusterVolumes(page, pageSize, sortBy, sortOrder)
+ volumesData, err := h.adminServer.GetClusterVolumes(page, pageSize, sortBy, sortOrder, collection)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": "Failed to get cluster volumes: " + err.Error()})
return