diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 23:59:17 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 23:59:17 +0800 |
commit | 0c0062b22ff4ddac9cf8c4ef84116eddba99bce2 (patch) | |
tree | 2d1790cdf42b0dcdb3f82f77cea2b86fb7a42120 /http_handle_users.go | |
parent | scfg: Remove tests for now (diff) | |
download | forge-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.go | 4 |
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) } |