mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-08 16:29:24 +00:00
20 lines
364 B
Swift
20 lines
364 B
Swift
import Foundation
|
|
|
|
public enum Accounts: Endpoint {
|
|
case accounts(id: String)
|
|
case verifyCredentials
|
|
|
|
public func path() -> String {
|
|
switch self {
|
|
case .accounts(let id):
|
|
return "accounts/\(id)"
|
|
case .verifyCredentials:
|
|
return "accounts/verify_credentials"
|
|
}
|
|
}
|
|
|
|
public func queryItems() -> [URLQueryItem]? {
|
|
nil
|
|
}
|
|
}
|