feat: Initial commit

This commit is contained in:
2025-02-25 12:01:47 -05:00
parent 3c0c100e50
commit a289075e75
2557 changed files with 379222 additions and 47 deletions

View File

@@ -0,0 +1,20 @@
import Dependencies
import DependenciesMacros
import Logging
import Routes
public extension DependencyValues {
var apiController: ApiController {
get { self[ApiController.self] }
set { self[ApiController.self] = newValue }
}
}
@DependencyClient
public struct ApiController: Sendable {
public var json: @Sendable (SiteRoute.Api, Logger) async throws -> (any Encodable)?
}
extension ApiController: TestDependencyKey {
public static let testValue: ApiController = Self()
}