mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-02 05:29:51 +00:00
26 lines
464 B
Swift
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
|
|
}
|
|
}
|
|
}
|