We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 324074f + a759c4a commit b45a81eCopy full SHA for b45a81e
doc.go
@@ -132,6 +132,9 @@ func (o *Okapi) registerDocRoutes(title string) {
132
o.Get(openApiDocPath, func(c *Context) error {
133
return c.JSON(http.StatusOK, o.openapiSpec)
134
}).internalRoute().Hide() // Hide the route from the OpenAPI documentation
135
+ o.Get("/openapi.yaml", func(c *Context) error {
136
+ return c.YAML(http.StatusOK, o.openapiSpec)
137
+ }).internalRoute().Hide()
138
// Register the swagger route
139
o.Get(openApiDocPrefix, func(c *Context) error {
140
return c.renderHTML(http.StatusOK, swaggerTemplate, M{"Title": title})
0 commit comments