add fixture-backed admin and ios scaffold

This commit is contained in:
2026-04-09 15:30:00 +02:00
parent a1dcebaec1
commit 87f152a232
33 changed files with 927 additions and 24 deletions
@@ -0,0 +1,24 @@
import Foundation
struct APIEnvironment {
let baseURL: URL
}
struct HermesAPIClient {
let environment: APIEnvironment
let session: URLSession
init(environment: APIEnvironment, session: URLSession = .shared) {
self.environment = environment
self.session = session
}
func get(path: String) async throws -> (Data, HTTPURLResponse) {
let url = environment.baseURL.appendingPathComponent(path)
let (data, response) = try await session.data(from: url)
guard let httpResponse = response as? HTTPURLResponse else {
throw URLError(.badServerResponse)
}
return (data, httpResponse)
}
}