WIP: Working signup and login forms, along with initial view auth middleware.

This commit is contained in:
2026-01-03 11:30:42 -05:00
parent 6c6045b4a6
commit 1d155546ae
14 changed files with 316 additions and 1152 deletions

View File

@@ -100,15 +100,14 @@ private func addCommands(to app: Application) {
extension SiteRoute {
fileprivate func middleware() -> [any Middleware]? {
return nil
// switch self {
// case .api(let route):
// return route.middleware
// // case .health:
// // return nil
// case .view(let route):
// return route.middleware
// }
switch self {
case .api:
return nil
case .health:
return nil
case .view(let route):
return route.middleware
}
}
}