😑 using search-a-licious API now...
This commit is contained in:
@@ -4,6 +4,7 @@ public struct OpenFoodFactsConfig: Sendable {
|
||||
public let baseURL: URL
|
||||
public let userAgent: UserAgent
|
||||
public let apiURL: URL
|
||||
public let searchURL: URL
|
||||
|
||||
public struct UserAgent: CustomStringConvertible, Sendable {
|
||||
public let appName: String
|
||||
@@ -62,5 +63,6 @@ public struct OpenFoodFactsConfig: Sendable {
|
||||
self.baseURL = environment.url
|
||||
self.userAgent = userAgent
|
||||
self.apiURL = self.baseURL.appendingPathComponent("/api/v2")
|
||||
self.searchURL = URL(string: "https://search.openfoodfacts.org/search")!
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user