MCPcopy Create free account
hub / github.com/Authula/authula / NewRouter

Function NewRouter

router.go:82–114  ·  view source on GitHub ↗

NewRouter creates a new Router with Chi as the underlying router opts can be nil to use default options

(config *models.Config, logger models.Logger, opts *RouterOptions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 4

JSONResponseFunction · 0.92
DefaultRouterOptionsFunction · 0.85
ErrorMethod · 0.65