Add various api base urls for Reader API

This commit is contained in:
Maurice Parker 2020-10-24 19:38:47 -05:00
parent ec66c08f9a
commit 1917eb1007
1 changed files with 12 additions and 5 deletions

View File

@ -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()