diff options
author | Runxi Yu <me@runxiyu.org> | 2025-08-17 18:14:35 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-08-17 18:14:35 +0800 |
commit | 4479525731ef41bd5e2a91b949142a2097e0e701 (patch) | |
tree | 1c19df11472fdd2202df7158dafd0b15f59c3521 /forged/internal/incoming/web/handlers/group.go | |
parent | Move all config typedefs to config.go (diff) | |
download | forge-4479525731ef41bd5e2a91b949142a2097e0e701.tar.gz forge-4479525731ef41bd5e2a91b949142a2097e0e701.tar.zst forge-4479525731ef41bd5e2a91b949142a2097e0e701.zip |
Move more stub handlers to handlers/
Diffstat (limited to 'forged/internal/incoming/web/handlers/group.go')
-rw-r--r-- | forged/internal/incoming/web/handlers/group.go | 17 |
1 files changed, 17 insertions, 0 deletions
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, "/") + "/")) +} |