Ajouter et implémenter cfg.Bottin.API.Key

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-16 18:18:19 -04:00
parent ea49f1609f
commit 9b6dd055ef
2 changed files with 8 additions and 1 deletions

View file

@ -32,7 +32,7 @@ var apiCmd = &cobra.Command{
v0 := e.Group("/v0")
bottinApiClient := bottindata.NewApiClient("bottin", cfg.Bottin.API.Host, "http", 1312)
bottinApiClient := bottindata.NewApiClient(cfg.Bottin.API.Key, cfg.Bottin.API.Host, "http", 1312)
dbClient, err := dbclient.New("db", "bottinag", "bottinag", "bottinag", 5432, false)
if err != nil {