metatext/Shared/Networking/Mastodon API/Endpoints/PreferencesEndpoint.swift
Justin Mazzocchi 25ed9d08fd
Reorganization
2020-08-08 16:57:59 -07:00

23 lines
464 B
Swift

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