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

Function RouterWithFallback

tools/testserver/simple/open-api.go:127–133  ·  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{}, fallback http.Handler)

Source from the content-addressed store, hash-verified

125This API is responsible for managing payment methods for users as well as authorizing payments on behalf of PACE services.
126*/
127func RouterWithFallback(service interface{}, fallback http.Handler) *mux.Router {
128 router := mux.NewRouter()
129 // Subrouter s1 - Path: /pay
130 s1 := router.PathPrefix("/pay").Subrouter()
131 s1.Methods("GET").Path("/beta/test").Name("GetTest").Handler(GetTestHandlerWithFallbackHelper(service, fallback))
132 return router
133}

Callers

nothing calls this directly

Calls 3

NameMethod · 0.80
HandlerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…