metatext/Mastodon/Sources/Mastodon/Networking/Mastodon API/Endpoints/PreferencesEndpoint.swift
Justin Mazzocchi f86d8188b3
Renaming
2020-08-30 16:59:49 -07:00

24 lines
476 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
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
}
}
}