mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-15 22:11:06 +00:00
17 lines
266 B
Swift
17 lines
266 B
Swift
|
import Foundation
|
||
|
|
||
|
public enum Account: Endpoint {
|
||
|
case accounts(id: String)
|
||
|
|
||
|
public func path() -> String {
|
||
|
switch self {
|
||
|
case .accounts(let id):
|
||
|
return "accounts/\(id)"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public func queryItems() -> [URLQueryItem]? {
|
||
|
nil
|
||
|
}
|
||
|
}
|