mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-26 18:11:06 +00:00
14 lines
438 B
Swift
14 lines
438 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import MastodonAPI
|
|
import Stubbing
|
|
|
|
extension AccountEndpoint: Stubbing {
|
|
public func data(url: URL) -> Data? {
|
|
switch self {
|
|
case .verifyCredentials: return try? Data(contentsOf: Bundle.module.url(forResource: "account",
|
|
withExtension: "json")!)
|
|
}
|
|
}
|
|
}
|