From bb6561fe554915e63cacdb8e06d1d9f70ef08482 Mon Sep 17 00:00:00 2001 From: Poorna Krishnamoorthy Date: Mon, 5 Apr 2021 13:36:39 -0700 Subject: [PATCH] fix: route for replication-metrics API (#11968) --- cmd/api-router.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/api-router.go b/cmd/api-router.go index 9bd6d9bf2..65565bc32 100644 --- a/cmd/api-router.go +++ b/cmd/api-router.go @@ -424,15 +424,16 @@ func registerAPIRouter(router *mux.Router) { // DeleteBucket router.Methods(http.MethodDelete).HandlerFunc( collectAPIStats("deletebucket", maxClients(httpTraceAll(api.DeleteBucketHandler)))) - // ListObjectsV1 (Legacy) - router.Methods(http.MethodGet).HandlerFunc( - collectAPIStats("listobjectsv1", maxClients(httpTraceAll(api.ListObjectsV1Handler)))) - // MinIO extension API for replication. // // GetBucketReplicationMetrics router.Methods(http.MethodGet).HandlerFunc( collectAPIStats("getbucketreplicationmetrics", maxClients(httpTraceAll(api.GetBucketReplicationMetricsHandler)))).Queries("replication-metrics", "") + + // S3 ListObjectsV1 (Legacy) + router.Methods(http.MethodGet).HandlerFunc( + collectAPIStats("listobjectsv1", maxClients(httpTraceAll(api.ListObjectsV1Handler)))) + } /// Root operation