MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Prefix

Method Prefix

pkg/web/web.go:363–365  ·  view source on GitHub ↗

Prefix returns a route for the given path prefix.

(prefix string)

Source from the content-addressed store, hash-verified

361
362// Prefix returns a route for the given path prefix.
363func (s *Server) Prefix(prefix string) *mux.Route {
364 return s.getRouter(prefix).PathPrefix(prefix)
365}
366
367// PrefixWithRedirect will create a route ending in slash.
368// Paths which coincide with the route, but do not end with slash, will be

Callers 15

StartMethod · 0.80
initACMEMethod · 0.80
RegisterRoutesMethod · 0.80
SetFromFlagsMethod · 0.80
SetFromFlagsMethod · 0.80
SetFromFlagsMethod · 0.80

Calls 1

getRouterMethod · 0.95

Tested by

no test coverage detected