1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-19 13:02:49 +01:00
metatext-app-ios-iphone-ipad/Shared/Networking/Mastodon API/InstanceEndpoint.swift
Justin Mazzocchi 0755e81ed9
Refactoring
2020-08-02 17:55:23 -07:00

24 lines
435 B
Swift

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