Skip to content

Commit

Permalink
Fixed http-swagger gorilla example
Browse files Browse the repository at this point in the history
Fixed typo in Swagger UI DomID definition
  • Loading branch information
dario-collavini committed May 24, 2022
1 parent 25a52d5 commit f10a116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/gorilla/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
httpSwagger.URL("http://localhost:1323/swagger/doc.json"), //The url pointing to API definition
httpSwagger.DeepLinking(true),
httpSwagger.DocExpansion("none"),
httpSwagger.DomID("#swagger-ui"),
httpSwagger.DomID("swagger-ui"),
)).Methods(http.MethodGet)

log.Fatal(http.ListenAndServe(":1323", r))
Expand Down

0 comments on commit f10a116

Please sign in to comment.