mirror of
https://github.com/metabolist/metatext.git
synced 2024-05-13 22:12:54 +00:00
25 lines
488 B
Swift
25 lines
488 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import HTTP
|
|
|
|
public enum PreferencesEndpoint {
|
|
case preferences
|
|
}
|
|
|
|
extension PreferencesEndpoint: Endpoint {
|
|
public typealias ResultType = Preferences
|
|
|
|
public var pathComponentsInContext: [String] {
|
|
switch self {
|
|
case .preferences: return ["preferences"]
|
|
}
|
|
}
|
|
|
|
public var method: HTTPMethod {
|
|
switch self {
|
|
case .preferences: return .get
|
|
}
|
|
}
|
|
}
|