We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0178a commit ebdb92fCopy full SHA for ebdb92f
swagger.go
@@ -41,6 +41,10 @@ func WrapHandler(h *webdav.Handler) buffalo.Handler {
41
case "doc.json":
42
doc, _ := swag.ReadDoc()
43
c.Response().Write([]byte(doc))
44
+ case "swagger-ui.css":
45
+ // The browser needs to interpret CSS as a stylesheet
46
+ c.Response().Header().Add("Content-Type", "text/css")
47
+ h.ServeHTTP(c.Response(), c.Request())
48
default:
49
h.ServeHTTP(c.Response(), c.Request())
50
0 commit comments