From f58f56701d047398cc8d7a6433719de1b6070242 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 17 Aug 2025 17:47:38 +0800 Subject: Refactor handlers structure and add BaseData --- forged/internal/incoming/web/handlers/index.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 forged/internal/incoming/web/handlers/index.go (limited to 'forged/internal/incoming/web/handlers/index.go') diff --git a/forged/internal/incoming/web/handlers/index.go b/forged/internal/incoming/web/handlers/index.go new file mode 100644 index 0000000..773a0c6 --- /dev/null +++ b/forged/internal/incoming/web/handlers/index.go @@ -0,0 +1,15 @@ +package handlers + +import ( + "net/http" + + wtypes "go.lindenii.runxiyu.org/forge/forged/internal/incoming/web/types" +) + +type IndexHTTP struct{} + +func NewIndexHTTP() *IndexHTTP { return &IndexHTTP{} } + +func (h *IndexHTTP) Index(w http.ResponseWriter, r *http.Request, _ wtypes.Vars) { + _, _ = w.Write([]byte("index: replace with template render")) +} -- cgit v1.2.3