mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-02 04:51:21 +00:00
20 lines
387 B
Swift
20 lines
387 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import HTTP
|
|
import Mastodon
|
|
|
|
public enum ConversationsEndpoint {
|
|
case conversations
|
|
}
|
|
|
|
extension ConversationsEndpoint: Endpoint {
|
|
public typealias ResultType = [Conversation]
|
|
|
|
public var pathComponentsInContext: [String] {
|
|
["conversations"]
|
|
}
|
|
|
|
public var method: HTTPMethod { .get }
|
|
}
|