feat: Adds logout route and switches user navbar item to dropdown menu.

This commit is contained in:
2026-02-09 12:32:30 -05:00
parent 5a7cf4714b
commit 88af6f722e
5 changed files with 39 additions and 7 deletions

View File

@@ -899,11 +899,16 @@ extension SiteRoute.View {
extension SiteRoute.View {
public enum UserRoute: Equatable, Sendable {
case profile(Profile)
case logout
static let router = OneOf {
Route(.case(Self.profile)) {
Profile.router
}
Route(.case(Self.logout)) {
Path { "logout" }
Method.get
}
}
}
}