metatext/Shared/Networking/Mastodon API/Endpoints/PreferencesEndpoint.swift

24 lines
464 B
Swift
Raw Normal View History

2020-08-07 01:41:59 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
enum PreferencesEndpoint {
case preferences
}
extension PreferencesEndpoint: MastodonEndpoint {
typealias ResultType = MastodonPreferences
var pathComponentsInContext: [String] {
switch self {
2020-08-07 10:14:14 +00:00
case .preferences: return ["preferences"]
2020-08-07 01:41:59 +00:00
}
}
var method: HTTPMethod {
switch self {
case .preferences: return .get
}
}
}