diff --git a/cmd/api.go b/cmd/api.go index d0e5c5b..36bfedc 100644 --- a/cmd/api.go +++ b/cmd/api.go @@ -32,7 +32,7 @@ var apiCmd = &cobra.Command{ v0 := e.Group("/v0") - bottinApiClient := bottindata.NewApiClient("bottin", "localhost", "http", 1312) + bottinApiClient := bottindata.NewApiClient("bottin", cfg.Bottin.API.Host, "http", 1312) dbClient, err := dbclient.New("db", "bottinag", "bottinag", "bottinag", 5432, false) if err != nil {