feat: Removes old tests, fixes authentication middleware not working, view routes updated to not have delete routes and uses api routes for delete methods.

This commit is contained in:
2025-01-24 10:55:59 -05:00
parent aa60f69758
commit 90c6058d56
37 changed files with 146 additions and 564 deletions

View File

@@ -5,8 +5,12 @@ import SharedModels
extension ViewController: DependencyKey {
public static var liveValue: ViewController {
.init(view: { route, isHtmxRequest, authenticate in
try await route.view(isHtmxRequest: isHtmxRequest, authenticate: authenticate)
.init(view: { request in
try await request.route.view(
isHtmxRequest: request.isHtmxRequest,
logger: request.logger,
authenticate: request.authenticate
)
})
}
}