mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-02 06:41:41 +00:00
22 lines
399 B
Swift
22 lines
399 B
Swift
// Copyright © 2021 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import HTTP
|
|
import Mastodon
|
|
|
|
public enum AnnouncementsEndpoint {
|
|
case announcements
|
|
}
|
|
|
|
extension AnnouncementsEndpoint: Endpoint {
|
|
public typealias ResultType = [Announcement]
|
|
|
|
public var pathComponentsInContext: [String] {
|
|
["announcements"]
|
|
}
|
|
|
|
public var method: HTTPMethod {
|
|
.get
|
|
}
|
|
}
|