2021-12-02 04:00:33 +00:00
|
|
|
package ficsit
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/Khan/genqlient/graphql"
|
|
|
|
"github.com/spf13/viper"
|
|
|
|
)
|
|
|
|
|
|
|
|
func InitAPI() graphql.Client {
|
2022-05-02 20:07:15 +00:00
|
|
|
return graphql.NewClient(viper.GetString("api-base")+viper.GetString("graphql-api"), http.DefaultClient)
|
2021-12-02 04:00:33 +00:00
|
|
|
}
|