diff --git a/disperser/dataapi/server.go b/disperser/dataapi/server.go index a99d34f36f..fb327635eb 100644 --- a/disperser/dataapi/server.go +++ b/disperser/dataapi/server.go @@ -250,7 +250,7 @@ func (s *server) Start() error { { feed.GET("/blobs", s.FetchBlobsHandler) feed.GET("/blobs/:blob_key", s.FetchBlobHandler) - feed.GET("/blobs/:accountId", s.FetchBlobCountByAccountIdHandler) + feed.GET("/blobs/count/:accountId", s.FetchBlobCountByAccountIdHandler) } operatorsInfo := v1.Group("/operators-info") { diff --git a/disperser/dataapi/server_test.go b/disperser/dataapi/server_test.go index 63c2ded802..a611eb7af7 100644 --- a/disperser/dataapi/server_test.go +++ b/disperser/dataapi/server_test.go @@ -256,10 +256,10 @@ func TestFetchBlobCountByAccountIdHandler(t *testing.T) { // mark Blob confirmed with accountId test1 markBlobConfirmed(t, &blob, key, expectedBatchHeaderHash, "test1", blobstore) accountId := "test1" - r.GET("/v1/feed/blobs/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler) + r.GET("/v1/feed/blobs/count/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler) w := httptest.NewRecorder() - req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/"+accountId, nil) + req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/count/"+accountId, nil) r.ServeHTTP(w, req) res := w.Result() @@ -288,10 +288,10 @@ func TestFetchBlobCountByAccountIdInvalidHandler(t *testing.T) { // BlobAccountId is "test" // Search by AccountId test1 accountId := "test3" - r.GET("/v1/feed/blobs/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler) + r.GET("/v1/feed/blobs/count/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler) w := httptest.NewRecorder() - req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/"+accountId, nil) + req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/count/"+accountId, nil) r.ServeHTTP(w, req) res := w.Result()