mastodon-ios/Mastodon/Service/APIService/APIService+Instance.swift

25 lines
474 B
Swift
Raw Normal View History

2021-02-05 08:58:48 +01:00
//
// APIService+Instance.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-2-5.
//
import Foundation
import Combine
import CoreData
import CoreDataStack
import CommonOSLog
import DateToolsSwift
import MastodonSDK
extension APIService {
func instance(
domain: String
) -> AnyPublisher<Mastodon.Response.Content<Mastodon.Entity.Instance>, Error> {
return Mastodon.API.Instance.instance(session: session, domain: domain)
}
}