Add various api base urls for Reader API
This commit is contained in:
parent
ec66c08f9a
commit
1917eb1007
|
@ -63,14 +63,21 @@ final class ReaderAPICaller: NSObject {
|
|||
|
||||
private var APIBaseURL: URL? {
|
||||
get {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
init(transport: Transport) {
|
||||
super.init()
|
||||
|
|
Loading…
Reference in New Issue