mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-02 13:29:41 +00:00
20 lines
284 B
Swift
20 lines
284 B
Swift
import Foundation
|
|
|
|
public enum Instances: Endpoint {
|
|
case instance
|
|
case peers
|
|
|
|
public func path() -> String {
|
|
switch self {
|
|
case .instance:
|
|
"instance"
|
|
case .peers:
|
|
"instance/peers"
|
|
}
|
|
}
|
|
|
|
public func queryItems() -> [URLQueryItem]? {
|
|
nil
|
|
}
|
|
}
|