Skip to content

Commit

Permalink
change order to avoid log noise of healthchecks (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Roberts <derek.roberts@gmail.com>
  • Loading branch information
mishraomp and DerekRoberts authored Sep 25, 2023
1 parent cac8342 commit 4399dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend-go/src/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ func App() *fiber.App {
app.Use(favicon.New())
app.Use(recover.New())
app.Use(cors.New())

app.Get("/", HealthCheck)
app.Use(logger.New(logger.Config{
TimeFormat: "2006-01-02T15:04:05",
TimeZone: "America/Vancouver",
}))
app.Get("/", HealthCheck)

routes.UserRoutes(app)
// Serve Swagger documentation
app.Get("/swagger/*", swagger.HandlerDefault) // default
Expand Down

0 comments on commit 4399dd9

Please sign in to comment.