2020-08-29 03:50:58 +00:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
2020-08-31 01:40:58 +00:00
|
|
|
import HTTP
|
2020-09-04 01:55:46 +00:00
|
|
|
import Mastodon
|
2020-08-29 03:50:58 +00:00
|
|
|
|
2020-08-30 23:33:11 +00:00
|
|
|
public enum ListsEndpoint {
|
2020-08-29 03:50:58 +00:00
|
|
|
case lists
|
|
|
|
}
|
|
|
|
|
2020-08-30 23:59:49 +00:00
|
|
|
extension ListsEndpoint: Endpoint {
|
2020-08-30 23:33:11 +00:00
|
|
|
public typealias ResultType = [MastodonList]
|
2020-08-29 03:50:58 +00:00
|
|
|
|
2020-08-30 23:33:11 +00:00
|
|
|
public var pathComponentsInContext: [String] {
|
2020-08-29 03:50:58 +00:00
|
|
|
["lists"]
|
|
|
|
}
|
|
|
|
|
2020-08-30 23:33:11 +00:00
|
|
|
public var method: HTTPMethod {
|
2020-08-29 03:50:58 +00:00
|
|
|
.get
|
|
|
|
}
|
|
|
|
}
|