Skip to content

Commit fb6f10f

Browse files
committed
Fix version API endpoint
1 parent a7b05e7 commit fb6f10f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/dss/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var (
2626
Use: "dss",
2727
Short: "Scan a domain's DNS records.",
2828
Long: "Scan a domain's DNS records.\nhttps://github.com/GlobalCyberAlliance/domain-security-scanner",
29-
Version: "3.0.10",
29+
Version: "3.0.11",
3030
PersistentPreRun: func(cmd *cobra.Command, args []string) {
3131
var logWriter io.Writer
3232

pkg/http/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (s *Server) registerVersionRoute(version string) {
119119
OperationID: "version",
120120
Summary: "Get the version of the API",
121121
Method: http.MethodGet,
122-
Path: s.apiPath + "version",
122+
Path: s.apiPath + "/version",
123123
Tags: []string{"Version"},
124124
}, func(ctx context.Context, input *struct{}) (*VersionResponse, error) {
125125
resp := VersionResponse{}

0 commit comments

Comments
 (0)