Ajouter et implémenter cfg.Bottin.API.Port et cfg.Bottin.API.Protocol
This commit is contained in:
parent
9b6dd055ef
commit
532c85f200
2 changed files with 17 additions and 3 deletions
|
@ -32,7 +32,7 @@ var apiCmd = &cobra.Command{
|
|||
|
||||
v0 := e.Group("/v0")
|
||||
|
||||
bottinApiClient := bottindata.NewApiClient(cfg.Bottin.API.Key, cfg.Bottin.API.Host, "http", 1312)
|
||||
bottinApiClient := bottindata.NewApiClient(cfg.Bottin.API.Key, cfg.Bottin.API.Host, cfg.Bottin.API.Protocol, cfg.Bottin.API.Port)
|
||||
|
||||
dbClient, err := dbclient.New("db", "bottinag", "bottinag", "bottinag", 5432, false)
|
||||
if err != nil {
|
||||
|
|
Reference in a new issue