aboutsummaryrefslogtreecommitdiff
path: root/http_handle_users.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 23:59:17 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 23:59:17 +0800
commit0c0062b22ff4ddac9cf8c4ef84116eddba99bce2 (patch)
tree2d1790cdf42b0dcdb3f82f77cea2b86fb7a42120 /http_handle_users.go
parentscfg: Remove tests for now (diff)
downloadforge-0c0062b22ff4ddac9cf8c4ef84116eddba99bce2.tar.gz
forge-0c0062b22ff4ddac9cf8c4ef84116eddba99bce2.tar.zst
forge-0c0062b22ff4ddac9cf8c4ef84116eddba99bce2.zip
templates shall no longer be a global variable
Diffstat (limited to 'http_handle_users.go')
-rw-r--r--http_handle_users.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_users.go b/http_handle_users.go
index ce6c045..816d703 100644
--- a/http_handle_users.go
+++ b/http_handle_users.go
@@ -10,6 +10,6 @@ import (
)
// httpHandleUsers is a useless stub.
-func httpHandleUsers(writer http.ResponseWriter, _ *http.Request, params map[string]any) {
- web.ErrorPage501(templates, writer, params)
+func (s *Server) httpHandleUsers(writer http.ResponseWriter, _ *http.Request, params map[string]any) {
+ web.ErrorPage501(s.templates, writer, params)
}