Add various api base urls for Reader API
This commit is contained in:
parent
ec66c08f9a
commit
1917eb1007
|
@ -63,15 +63,22 @@ final class ReaderAPICaller: NSObject {
|
||||||
|
|
||||||
private var APIBaseURL: URL? {
|
private var APIBaseURL: URL? {
|
||||||
get {
|
get {
|
||||||
guard let accountMetadata = accountMetadata else {
|
switch variant {
|
||||||
return nil
|
case .inoreader:
|
||||||
|
return URL(string: "https://www.inoreader.com")
|
||||||
|
case .bazQux:
|
||||||
|
return URL(string: "https://bazqux.com")
|
||||||
|
case .theOldReader:
|
||||||
|
return URL(string: "https://theoldreader.com")
|
||||||
|
case .generic:
|
||||||
|
guard let accountMetadata = accountMetadata else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return accountMetadata.endpointURL
|
||||||
}
|
}
|
||||||
|
|
||||||
return accountMetadata.endpointURL
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
init(transport: Transport) {
|
init(transport: Transport) {
|
||||||
super.init()
|
super.init()
|
||||||
self.transport = transport
|
self.transport = transport
|
||||||
|
|
Loading…
Reference in New Issue