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

@@ -14,7 +14,8 @@ struct HomeView: HTML, Sendable {
.class("btn btn-ghost btn-secondary text-lg"),
.hx.get(route: .login(.index())),
.hx.target("body"),
.hx.swap(.outerHTML)
.hx.swap(.outerHTML),
.hx.pushURL(true)
) {
"Login"
}