Skip to content

Commit

Permalink
move swagger generation to api.go
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoRoessner committed Sep 9, 2024
1 parent a896388 commit b822f6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
3 changes: 3 additions & 0 deletions lib/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import (
"reflect"
)

//go:generate go install github.com/swaggo/swag/cmd/swag@latest
//go:generate swag init --instanceName devicemanager -o ../../docs --parseDependency -d . -g api.go

type EndpointMethod = func(config config.Config, router *http.ServeMux, ctrl Controller)

var endpoints = []interface{}{} //list of objects with EndpointMethod
Expand Down
20 changes: 0 additions & 20 deletions lib/api/doc_gen/gen.go

This file was deleted.

0 comments on commit b822f6d

Please sign in to comment.