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