wip
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user