탐색 메인 페이지
This commit is contained in:
23
SodaLive/Sources/Explorer/ExplorerRepository.swift
Normal file
23
SodaLive/Sources/Explorer/ExplorerRepository.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// ExplorerRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/10.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class ExplorerRepository {
|
||||
private let api = MoyaProvider<ExplorerApi>()
|
||||
|
||||
func getExplorer() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getExplorer)
|
||||
}
|
||||
|
||||
func searchChannel(channel: String) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.searchChannel(channel: channel))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user