diff --git a/docs.go b/docs.go index 2715263..7dce351 100644 --- a/docs.go +++ b/docs.go @@ -19,7 +19,7 @@ func splitDocs(docs string) (title, desc string) { } // RapiDocHandler renders documentation using RapiDoc. -func RapiDocHandler(pageTitle string) http.Handler { +func RapiDocHandler(router *Router) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html") w.Write([]byte(fmt.Sprintf(` @@ -31,19 +31,19 @@ func RapiDocHandler(pageTitle string) http.Handler {