mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-17 01:17:43 +00:00
Hotfix: GraphQL endpoint setup. (#4)
This commit is contained in:
@@ -30,8 +30,9 @@ func prepare() {
|
|||||||
value, present := os.LookupEnv("GRAPHQL_ENDPOINT")
|
value, present := os.LookupEnv("GRAPHQL_ENDPOINT")
|
||||||
if present {
|
if present {
|
||||||
GraphQLUrl = value
|
GraphQLUrl = value
|
||||||
} else if zero.IsZero(GraphQLUrl) && !present {
|
} else if !present && zero.IsZero(GraphQLUrl) {
|
||||||
GraphQLUrl = "http://127.0.0.1:9090/v1/graphql"
|
GraphQLUrl = "http://127.0.0.1:9090/v1/graphql"
|
||||||
|
fmt.Println("Setting default endpoint", GraphQLUrl)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("GraphQL endpoint not set.")
|
fmt.Println("GraphQL endpoint not set.")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user