Skip to content

Commit

Permalink
Allow configuration of endpoint for iOS client (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
hallee authored Nov 6, 2020
1 parent 2928ea9 commit a05b335
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions iOS/QuartzContent/QuartzContentClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import Foundation

public enum QuartzContentClient {

private static let endpoint = URL(string: "https://content.qz.com/graphql")!

private static let name = "content"

/// Quartz content GraphQL Apollo client
Expand All @@ -18,7 +16,8 @@ public enum QuartzContentClient {
public static func create(
authorization: (() -> String?)?,
userAgent: (() -> String?)?,
database: Bool
database: Bool,
endpoint: URL = URL(string: "https://content.qz.com/graphql")!
) throws -> ApolloClient {
let cache: NormalizedCache
if database {
Expand Down

0 comments on commit a05b335

Please sign in to comment.