From 4479525731ef41bd5e2a91b949142a2097e0e701 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 17 Aug 2025 18:14:35 +0800 Subject: Move more stub handlers to handlers/ --- forged/internal/incoming/web/handlers/group.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 forged/internal/incoming/web/handlers/group.go (limited to 'forged/internal/incoming/web/handlers/group.go') diff --git a/forged/internal/incoming/web/handlers/group.go b/forged/internal/incoming/web/handlers/group.go new file mode 100644 index 0000000..1a1cb1d --- /dev/null +++ b/forged/internal/incoming/web/handlers/group.go @@ -0,0 +1,17 @@ +package handlers + +import ( + "net/http" + "strings" + + wtypes "go.lindenii.runxiyu.org/forge/forged/internal/incoming/web/types" +) + +type GroupHTTP struct{} + +func NewGroupHTTP() *GroupHTTP { return &GroupHTTP{} } + +func (h *GroupHTTP) Index(w http.ResponseWriter, r *http.Request, _ wtypes.Vars) { + base := wtypes.Base(r) + _, _ = w.Write([]byte("group index for: /" + strings.Join(base.GroupPath, "/") + "/")) +} -- cgit v1.2.3