MCPcopy Create free account
hub / github.com/pace/bricks / Router

Function Router

http/jsonapi/generator/internal/securitytest/open-api_test.go:157–165  ·  view source on GitHub ↗

* Router implements: PACE Payment API Welcome to the PACE Payment API documentation. This API is responsible for managing payment methods for users as well as authorizing payments on behalf of PACE services. */

(service interface{}, authBackend AuthorizationBackend)

Source from the content-addressed store, hash-verified

155This API is responsible for managing payment methods for users as well as authorizing payments on behalf of PACE services.
156*/
157func Router(service interface{}, authBackend AuthorizationBackend) *mux.Router {
158 router := mux.NewRouter()
159 authBackend.InitOAuth2(cfgOAuth2)
160 authBackend.InitProfileKey(cfgProfileKey)
161 // Subrouter s1 - Path: /pay
162 s1 := router.PathPrefix("/pay").Subrouter()
163 s1.Methods("GET").Path("/beta/test").Name("GetTest").Handler(GetTestHandlerWithFallbackHelper(service, router.NotFoundHandler, authBackend))
164 return router
165}
166
167/*
168Router implements: PACE Payment API

Callers 1

Calls 5

NameMethod · 0.80
InitOAuth2Method · 0.65
InitProfileKeyMethod · 0.65
HandlerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…