Skip to content

Commit

Permalink
Merge pull request #81 from vortex14/swagger
Browse files Browse the repository at this point in the history
remove custom port for swagger
  • Loading branch information
vortex14 authored Sep 4, 2023
2 parents cd1086e + 3faf416 commit 9848edd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions integrations/swagger/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package swagger

import (
"fmt"
"os"
"reflect"
"strings"

"github.com/getkin/kin-openapi/openapi3"
"github.com/getkin/kin-openapi/openapi3gen"
"github.com/vortex14/gotyphoon/interfaces"
"github.com/vortex14/gotyphoon/utils"
"os"
"reflect"
"strings"
)

const (
Expand Down Expand Up @@ -295,7 +296,7 @@ func ConstructorNewFromArgs(title, description, version string, host []string) *
},
Servers: openapi3.Servers{
&openapi3.Server{
URL: fmt.Sprintf("%s://%s:%s", host[0], host[1], host[2]),
URL: fmt.Sprintf("%s://%s", host[0], host[1]),
},
},
Components: &openapi3.Components{
Expand Down

0 comments on commit 9848edd

Please sign in to comment.