21 lines
546 B
Swift
21 lines
546 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
import SessionUtilitiesKit
|
|
|
|
extension FileServerAPI {
|
|
public enum Endpoint: EndpointType {
|
|
case file
|
|
case fileIndividual(fileId: String)
|
|
case sessionVersion
|
|
|
|
public var path: String {
|
|
switch self {
|
|
case .file: return "file"
|
|
case .fileIndividual(let fileId): return "file/\(fileId)"
|
|
case .sessionVersion: return "session_version"
|
|
}
|
|
}
|
|
}
|
|
}
|