summaryrefslogtreecommitdiff
path: root/pages/pages.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pages/pages.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/pages.go b/pages/pages.go
index e965bdd..eb7a3f6 100644
--- a/pages/pages.go
+++ b/pages/pages.go
@@ -5,22 +5,22 @@ import (
)
func Init() Page {
- return simple("index", func(r *http.Request, uid int32) any {
+ return simple(index, func(r *http.Request, uid int32) string {
u, _ := Q.GetUserById(r.Context(), uid)
return u.Name
})
}
func Recur() Page {
- return simpleByQuery("recur", Q.GetRecurExpenses)
+ return simpleByQuery(recur, Q.GetRecurExpenses)
}
func Categories() Page {
- return simpleByQuery("categories", Q.GetCategoriesOrdered)
+ return simpleByQuery(categories, Q.GetCategoriesOrdered)
}
func NotFound() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
- showTemplate(w, "404", r.RequestURI)
+ render(notfound(r.RequestURI), w, r)
}
}