refactor services to use Interface and change name to app

This commit is contained in:
Robin Olsen
2026-02-22 16:16:09 +01:00
parent dbf619a054
commit 118e67dbf4
36 changed files with 247 additions and 219 deletions

View File

@@ -8,10 +8,10 @@ import (
)
func IndexHandler(w http.ResponseWriter, r *http.Request) {
svc := Services(r)
app := App(r)
hx := HTMX(r)
issues, err := svc.Beads.AllIssues(r.Context())
issues, err := app.Issues.AllIssues(r.Context())
if err != nil {
http.Error(w, "failed to retrieve issues", http.StatusInternalServerError)
return