Skip to content

Commit

Permalink
allow free pass for health check on dal
Browse files Browse the repository at this point in the history
  • Loading branch information
Intizar-T committed Jul 17, 2024
1 parent 286b7bc commit 3668e98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions node/pkg/dal/utils/stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ func StatsMiddleware(c *fiber.Ctx) error {
return err
}
duration := time.Since(start)

if c.Path() == "/api/v1" {
return nil
}

headers := c.GetReqHeaders()
apiKeyRaw, ok := headers["X-Api-Key"]
if !ok {
Expand Down

0 comments on commit 3668e98

Please sign in to comment.