diff --git a/docs.go b/docs.go index 737d7296..f3327322 100644 --- a/docs.go +++ b/docs.go @@ -19,10 +19,10 @@ func splitDocs(docs string) (title, desc string) { return } -// RapiDocHandler renders documentation using RapiDoc. -func RapiDocHandler(pageTitle string) Handler { - return func(c *gin.Context) { - c.Data(200, "text/html", []byte(fmt.Sprintf(` +// RapiDocTemplate is the template used to generate the RapiDoc. It needs two args to render: +// 1. the title +// 2. the path to the openapi.yaml file +var RapiDocTemplate = `