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

24 lines
461 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 {
case .preferences: return ["instance"]
}
}
var method: HTTPMethod {
switch self {
case .preferences: return .get
}
}
}