use beads service
use pointes for comments use htmx routing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user