Standardiser l'utilisation de api#NewApiClientFromViper #110

Merged
vlbeaudoin merged 2 commits from fix/use-api-client-from-viper into main 2023-08-19 15:24:19 -04:00
Showing only changes of commit a4b56214b2 - Show all commits

View file

@ -41,6 +41,9 @@ type UploadDocumentResponseInfo struct {
Size float64 `json:"size"` Size float64 `json:"size"`
} }
// NewApiClientFromViper returns a pointer to a new API object,
// provided the configuration options are managed by
// https://git.agecem.com/agecem/agecem-org/config
func NewApiClientFromViper() (*API, error) { func NewApiClientFromViper() (*API, error) {
var config config.Config var config config.Config