Browse Source

En cours de développement

master
mls-361 9 months ago
parent
commit
cd361907a3
  1. 8
      internal/cli/requestor.go

8
internal/cli/requestor.go

@ -24,8 +24,14 @@ func newRequestor(ccs *components.Components) (jw.Model, error) {
}
cfg := ccs.Config.Server()
scheme := "http"
if cfg.TLS != nil {
scheme += "s"
}
endpoint := &requestor.Endpoint{
URL: fmt.Sprintf("https://localhost:%d", cfg.Port),
URL: fmt.Sprintf("%s://localhost:%d", scheme, cfg.Port),
Username: username,
Password: password,
}

Loading…
Cancel
Save