Ajouter et implémenter cfg.Bottin.API.Port et cfg.Bottin.API.Protocol

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-16 18:21:39 -04:00
parent 9b6dd055ef
commit 532c85f200
2 changed files with 17 additions and 3 deletions

View file

@ -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 {