Impressia/Vernissage/EnvironmentObjects/Client+Places.swift

18 lines
413 B
Swift
Raw Normal View History

2023-02-19 09:41:35 +01:00
//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
// Licensed under the MIT License.
//
import Foundation
2023-02-19 10:32:38 +01:00
import PixelfedKit
2023-02-19 09:41:35 +01:00
2023-02-19 10:43:37 +01:00
/// Pixelfed 'Places'.
2023-02-19 09:41:35 +01:00
extension Client {
public class Places: BaseClient {
public func search(query: String) async throws -> [Place] {
2023-02-19 10:43:37 +01:00
return try await pixelfedClient.places(query: query)
2023-02-19 09:41:35 +01:00
}
}
}