Skip to content

Commit a232dc1

Browse files
Fix Open API HTML path replacement on serve
1 parent bdc0704 commit a232dc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openapi/openapi.go

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (s *OpenAPI) AddSecurityScheme(name string, scheme spec.SecurityScheme) {
9595
// Serve handles the docs, openapi.json, and server.js
9696
func (s *OpenAPI) Serve() {
9797

98+
s.makeIndexHTML(s.Path, indexHTML)
9899
s.cleanSpec()
99100

100101
s.mux.HandleFunc(fmt.Sprintf("%s/openapi.json", s.Path), func(w http.ResponseWriter, req *http.Request) {

0 commit comments

Comments
 (0)