설정 페이지 추가
This commit is contained in:
23
SodaLive/Sources/Settings/Terms/TermsRepository.swift
Normal file
23
SodaLive/Sources/Settings/Terms/TermsRepository.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// TermsRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/10.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class TermsRepository {
|
||||
private let api = MoyaProvider<TermsApi>()
|
||||
|
||||
func getTermsOfService() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.terms)
|
||||
}
|
||||
|
||||
func getPrivacyPolicy() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.privacy)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user