This commit is contained in:
2025-06-08 15:35:21 +02:00
parent 935019c1c4
commit 2a6f96d787
6 changed files with 94 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ import (
"net/http"
"spend-sparrow/internal/handler/middleware"
"spend-sparrow/internal/template"
"spend-sparrow/internal/template/dashboard"
"github.com/a-h/templ"
)
@@ -41,7 +42,7 @@ func (handler IndexImpl) handleRootAnd404() http.HandlerFunc {
status = http.StatusNotFound
} else {
if user != nil {
comp = template.Dashboard()
comp = dashboard.Dashboard()
} else {
comp = template.Index()
}