mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
15 lines
349 B
Swift
15 lines
349 B
Swift
import Alamofire
|
|
import Foundation
|
|
|
|
class DataProvider: ObservableObject {
|
|
static let instance = "https://invidious.home.arekf.net"
|
|
|
|
static func request(_ path: String) -> DataRequest {
|
|
return AF.request(apiURLString(path))
|
|
}
|
|
|
|
static func apiURLString(_ path: String) -> String {
|
|
"\(instance)/api/v1/\(path)"
|
|
}
|
|
}
|