Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RouteTree ¶
func RouteTree(router chi.Router, excludeRouteStartsWith []string) http.HandlerFunc
RouteTree will produce a map of string -> []string for all method + route combos that aren't excluded because of their prefix. This should be used like
r.Get("/routes", router.RouteTree(r, []string{
"/assets",
"/metrics",
"/routes",
...
}))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.