feat: Integrates view controller produced views, without working middleware protected routes. Need to get middleware working
This commit is contained in:
@@ -8,7 +8,10 @@ public typealias AnySendableHTML = (any HTML & Sendable)
|
||||
|
||||
public extension SharedModels.ViewRoute {
|
||||
|
||||
func view(isHtmxRequest: Bool, authenticate: @escaping @Sendable (User) -> Void) async throws -> AnySendableHTML? {
|
||||
func view(
|
||||
isHtmxRequest: Bool,
|
||||
authenticate: @escaping @Sendable (User) -> Void
|
||||
) async throws -> AnySendableHTML? {
|
||||
@Dependency(\.database.users) var users
|
||||
switch self {
|
||||
case .index:
|
||||
|
||||
Reference in New Issue
Block a user