aboutsummaryrefslogtreecommitdiff
path: root/http_server.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-21 15:35:29 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-21 15:35:29 +0800
commit897cac47296312af20c33ea0f02f173033dc86a6 (patch)
treee81de3f3f9b0a70ad04ab4621668422bcc9e3592 /http_server.go
parentRevert "Add gohtmplgen to the build process" (diff)
downloadforge-897cac47296312af20c33ea0f02f173033dc86a6.tar.gz
forge-897cac47296312af20c33ea0f02f173033dc86a6.tar.zst
forge-897cac47296312af20c33ea0f02f173033dc86a6.zip
Rename httpRouter
Diffstat (limited to 'http_server.go')
-rw-r--r--http_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_server.go b/http_server.go
index afe8000..193432e 100644
--- a/http_server.go
+++ b/http_server.go
@@ -14,9 +14,9 @@ import (
"go.lindenii.runxiyu.org/lindenii-common/clog"
)
-type httpRouter struct{}
+type forgeHTTPRouter struct{}
-func (router *httpRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+func (router *forgeHTTPRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
clog.Info("Incoming HTTP: " + r.RemoteAddr + " " + r.Method + " " + r.RequestURI)
var segments []string