Skip to content

Commit

Permalink
Fix version API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wolveix committed Apr 26, 2024
1 parent a7b05e7 commit fb6f10f
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dss/main.go
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ var (
Use: "dss",
Short: "Scan a domain's DNS records.",
Long: "Scan a domain's DNS records.\nhttps://github.com/GlobalCyberAlliance/domain-security-scanner",
Version: "3.0.10",
Version: "3.0.11",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
var logWriter io.Writer

2 changes: 1 addition & 1 deletion pkg/http/server.go
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ func (s *Server) registerVersionRoute(version string) {
OperationID: "version",
Summary: "Get the version of the API",
Method: http.MethodGet,
Path: s.apiPath + "version",
Path: s.apiPath + "/version",
Tags: []string{"Version"},
}, func(ctx context.Context, input *struct{}) (*VersionResponse, error) {
resp := VersionResponse{}

0 comments on commit fb6f10f

Please sign in to comment.