diff options
Diffstat (limited to '')
-rw-r--r-- | pages/pages.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pages/pages.go b/pages/pages.go index eb7a3f6..0f03cdd 100644 --- a/pages/pages.go +++ b/pages/pages.go @@ -5,10 +5,7 @@ import ( ) func Init() Page { - return simple(index, func(r *http.Request, uid int32) string { - u, _ := Q.GetUserById(r.Context(), uid) - return u.Name - }) + return simple(index()) } func Recur() Page { @@ -20,7 +17,5 @@ func Categories() Page { } func NotFound() http.HandlerFunc { - return func(w http.ResponseWriter, r *http.Request) { - render(notfound(r.RequestURI), w, r) - } + return render(notfound()) } |