use beads service

use pointes for comments
use htmx routing
This commit is contained in:
Robin Olsen
2026-02-22 11:03:31 +01:00
parent 15f8bbb8ed
commit 2e4185e30f
12 changed files with 403 additions and 358 deletions

View File

@@ -9,6 +9,7 @@ import (
func IndexHandler(w http.ResponseWriter, r *http.Request) {
svc := Services(r)
hx := HTMX(r)
issues, err := svc.Beads.AllIssues(r.Context())
if err != nil {
@@ -22,5 +23,10 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
},
}
if hx.IsHxRequest() {
routes.IndexContent(props).Render(r.Context(), w)
return
}
routes.Index(props).Render(r.Context(), w)
}