From 454910f7101efdafac6285bbb013b702a7164b87 Mon Sep 17 00:00:00 2001 From: Conflux Date: Thu, 21 Nov 2024 19:09:04 +0800 Subject: [PATCH] fix --- indexer/gateway/download.go | 1 + indexer/gateway/server.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/indexer/gateway/download.go b/indexer/gateway/download.go index 644e9ce..cc7233d 100644 --- a/indexer/gateway/download.go +++ b/indexer/gateway/download.go @@ -179,6 +179,7 @@ func getFileInfo(ctx context.Context, root common.Hash, txSeq *uint64) (info *no if finalInfo == nil { finalInfo = info + continue } finalInfo.Finalized = finalInfo.Finalized && info.Finalized diff --git a/indexer/gateway/server.go b/indexer/gateway/server.go index b9ad3e2..b209170 100644 --- a/indexer/gateway/server.go +++ b/indexer/gateway/server.go @@ -52,7 +52,8 @@ func newRouter() *gin.Engine { // handlers router.GET("/file", downloadFile) router.GET("/file/:cid/*filePath", downloadFileInFolder) - router.GET("/status/:cid", getFileStatus) + router.GET("/file/info/:cid", getFileStatus) + router.GET("/node/status", getNodeStatus) router.POST("/file/segment", uploadSegment) return router