ficsit-cli-flake/ficsit/root.go
2022-05-02 23:07:15 +03:00

12 lines
244 B
Go

package ficsit
import (
"net/http"
"github.com/Khan/genqlient/graphql"
"github.com/spf13/viper"
)
func InitAPI() graphql.Client {
return graphql.NewClient(viper.GetString("api-base")+viper.GetString("graphql-api"), http.DefaultClient)
}