1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-17 11:19:54 +01:00
mastodon-app-ufficiale-ipho.../MastodonIntent/Service/APIService.swift
2021-07-26 20:23:52 +08:00

34 lines
552 B
Swift

//
// APIService.swift
// MastodonIntent
//
// Created by Cirno MainasuK on 2021-7-26.
//
import os.log
import Foundation
import Combine
import CoreData
import CoreDataStack
import MastodonSDK
// Replica APIService for share extension
final class APIService {
var disposeBag = Set<AnyCancellable>()
static let shared = APIService()
// internal
let session: URLSession
// output
let error = PassthroughSubject<APIError, Never>()
private init() {
self.session = URLSession(configuration: .default)
}
}