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

Method RegisterRoutes

pkg/basicstation/cups/server.go:217–221  ·  view source on GitHub ↗

RegisterRoutes implements web.Registerer.

(srv *web.Server)

Source from the content-addressed store, hash-verified

215
216// RegisterRoutes implements web.Registerer.
217func (s *Server) RegisterRoutes(srv *web.Server) {
218 router := srv.Router().NewRoute().Subrouter()
219 router.Use(ratelimit.HTTPMiddleware(s.component.RateLimiter(), "http:gcs:cups"))
220 router.Path("/update-info").HandlerFunc(s.UpdateInfo).Methods(http.MethodPost)
221}
222
223var errNoTrust = errors.DefineInternal("no_trust", "no trusted certificate found")
224

Callers

nothing calls this directly

Calls 4

HTTPMiddlewareFunction · 0.92
RouterMethod · 0.80
UseMethod · 0.65
RateLimiterMethod · 0.65

Tested by

no test coverage detected