mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-17 03:09:19 +01:00
34 lines
552 B
Swift
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)
|
|
}
|
|
|
|
}
|
|
|