Skip to content

Commit

Permalink
add redirect from root to swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Feb 29, 2024
1 parent b713794 commit 8b28b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ func (s *HttpServer) Initialize() {
v1.GET("beacon/blob_sidecars/:block_id", blobsController.BlobsByBlockId)

s.Router.GET("/health", healthController.Health)

s.Router.GET("/", func(c *gin.Context) {
c.Redirect(http.StatusMovedPermanently, "/swagger/index.html")
})
}

func (s *HttpServer) Run(wg *sync.WaitGroup) {
Expand Down

0 comments on commit 8b28b49

Please sign in to comment.