Skip to content

Commit

Permalink
update swagger url
Browse files Browse the repository at this point in the history
  • Loading branch information
Raajheer1 committed Aug 25, 2024
1 parent c374076 commit 3ce2657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/router.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package external

import (
"fmt"
_ "github.com/VATUSA/primary-api/external/docs"
v3 "github.com/VATUSA/primary-api/external/v3"
"github.com/VATUSA/primary-api/pkg/config"
Expand Down Expand Up @@ -28,8 +29,7 @@ func Router(r chi.Router, cfg *config.Config) {
v3.Router(r, cfg)

r.Get("/swagger/*", httpSwagger.Handler(
//httpSwagger.URL("https://api.vatusa.dev/swagger/doc.json"),
httpSwagger.URL("http://api.vatusa.local:3000/swagger/doc.json"),
httpSwagger.URL(fmt.Sprintf("%s/swagger/doc.json", config.Cfg.API.BaseURL)),
))

}

0 comments on commit 3ce2657

Please sign in to comment.