Impressia/Vernissage/EnvironmentObjects/Client+Search.swift

17 lines
523 B
Swift

//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
// Licensed under the Apache License 2.0.
//
import Foundation
import PixelfedKit
extension Client {
public class Search: BaseClient {
public func search(query: String, resultsType: Pixelfed.Search.ResultsType, limit: Int = 20, page: Int = 1) async throws -> SearchResults? {
return try await pixelfedClient.search(query: query, type: resultsType, limit: limit, page: page)
}
}
}