diff --git a/cmd/dss/main.go b/cmd/dss/main.go index 0893a55..9f2aa79 100644 --- a/cmd/dss/main.go +++ b/cmd/dss/main.go @@ -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 diff --git a/pkg/http/server.go b/pkg/http/server.go index e97f8c2..34c373b 100644 --- a/pkg/http/server.go +++ b/pkg/http/server.go @@ -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{}