HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
(si ServerInterface, r *mux.Router)
| 135 | |
| 136 | // HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux. |
| 137 | func HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler { |
| 138 | return HandlerWithOptions(si, GorillaServerOptions{ |
| 139 | BaseRouter: r, |
| 140 | }) |
| 141 | } |
| 142 | |
| 143 | func HandlerFromMuxWithBaseURL(si ServerInterface, r *mux.Router, baseURL string) http.Handler { |
| 144 | return HandlerWithOptions(si, GorillaServerOptions{ |
no test coverage detected