[legal-api-links] Load Terms of Use and Privacy Policy from Atomenta API
Terms and Privacy screens now fetch the real PediFoods customer PDFs from the backend instead of showing static placeholder text. Also surfaces both links on the Profile screen below the version label, not just during registration.
This commit is contained in:
@@ -39,3 +39,19 @@ enum ApiConfig {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum LegalDocument: Sendable {
|
||||
case terms
|
||||
case privacyPolicy
|
||||
|
||||
private var path: String {
|
||||
switch self {
|
||||
case .terms: return "api/public/pedi-foods-customer/terms"
|
||||
case .privacyPolicy: return "api/public/pedi-foods-customer/privacy-policy"
|
||||
}
|
||||
}
|
||||
|
||||
var url: URL {
|
||||
ApiConfig.baseURL.appendingPathComponent(path)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user