12 lines
208 B
Go
12 lines
208 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"), http.DefaultClient)
|
|
}
|