Skip to content

Commit

Permalink
fix /doc endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoRoessner committed Sep 9, 2024
1 parent b822f6d commit f79e120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Swagger struct{}
func (this *Swagger) Swagger(config config.Config, router *http.ServeMux, control Controller) {
router.HandleFunc("GET /doc", func(writer http.ResponseWriter, request *http.Request) {
writer.Header().Set("Content-Type", "application/json; charset=utf-8")
doc, err := swag.ReadDoc("devicerepository")
doc, err := swag.ReadDoc("devicemanager")
if err != nil {
http.Error(writer, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
return
Expand Down

0 comments on commit f79e120

Please sign in to comment.