Skip to content

Commit

Permalink
docs: add godocs comments to all routes
Browse files Browse the repository at this point in the history
* disable serving docs by default
  • Loading branch information
kamikazechaser committed Apr 14, 2023
1 parent 223656b commit e91f82c
Show file tree
Hide file tree
Showing 10 changed files with 548 additions and 38 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build:
${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o ${BIN} cmd/service/*

docs:
swag fmt --dir internal/api/
swag init --dir internal/api/ -g swagger.go

run:
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ address = ":5000"
# Exposes Go process Prometheus metrics
# /metrics endpoint
metrics = true
docs = true
docs = false

[chain]
rpc_endpoint = ""
Expand Down
188 changes: 186 additions & 2 deletions docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e91f82c

Please sign in to comment.