Files

24 lines
500 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// SettingAPI.swift
// suixinkan
//
import Foundation
@MainActor
/// API
final class SettingAPI {
private let client: APIClient
init(client: APIClient) {
self.client = client
}
/// App
func checkLatestVersion() async throws -> VersionResponse {
try await client.send(
APIRequest(method: .get, path: "/api/app/latest-version")
)
}
}