* 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)
| 155 | This API is responsible for managing payment methods for users as well as authorizing payments on behalf of PACE services. |
| 156 | */ |
| 157 | func 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 | /* |
| 168 | Router implements: PACE Payment API |
no test coverage detected
searching dependent graphs…