IceCubesApp/Packages/Network/Sources/Network/Endpoint/Trends.swift
2022-12-23 10:41:55 +01:00

26 lines
405 B
Swift

import Foundation
public enum Trends: Endpoint {
case tags
case statuses
case links
public func path() -> String {
switch self {
case .tags:
return "trends/tags"
case .statuses:
return "trends/statuses"
case .links:
return "trends/links"
}
}
public func queryItems() -> [URLQueryItem]? {
switch self {
default:
return nil
}
}
}