metatext/Mastodon/Sources/Mastodon/API/Endpoints/InstanceEndpoint.swift
2020-08-30 18:40:58 -07:00

25 lines
467 B
Swift

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