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? {
|
||||
get {
|
||||
guard let accountMetadata = accountMetadata else {
|
||||
return nil
|
||||
switch variant {
|
||||
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) {
|
||||
super.init()
|
||||
self.transport = transport
|
||||
|
|
Loading…
Reference in New Issue