metatext/MastodonAPI/Sources/MastodonAPI/Endpoints/TagsEndpoint.swift
2021-01-30 14:27:49 -08:00

26 lines
464 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import HTTP
import Mastodon
public enum TagsEndpoint {
case trends
}
extension TagsEndpoint: Endpoint {
public typealias ResultType = [Tag]
public var pathComponentsInContext: [String] {
switch self {
case .trends: return ["trends"]
}
}
public var method: HTTPMethod {
switch self {
case .trends: return .get
}
}
}