Skip to content

Commit

Permalink
chore: add /debug/routes
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Aug 22, 2024
1 parent eef4391 commit 064af49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions echo/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ func AddDebugHandlers(e *echo.Echo, rbac echo.MiddlewareFunc) {

debug := e.Group("/debug", rbac)

debug.GET("/routes", func(c echo.Context) error {
return c.JSON(http.StatusOK, e.Routes())
})

debug.GET("/loggers", func(c echo.Context) error {
return c.JSON(200, logger.GetNamedLoggingLevels())
})
Expand Down

0 comments on commit 064af49

Please sign in to comment.