blob: 3a6d7ea6840a72d26e2095858cc94c1a866ba854 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package repo
import (
"fmt"
"net/http"
"strings"
wtypes "go.lindenii.runxiyu.org/forge/forged/internal/incoming/web/types"
)
type HTTP struct{}
func NewHTTP() *HTTP { return &HTTP{} }
func (h *HTTP) Index(w http.ResponseWriter, r *http.Request, v wtypes.Vars) {
base := wtypes.Base(r)
repo := v["repo"]
_, _ = w.Write([]byte(fmt.Sprintf("repo index: group=%q repo=%q",
"/"+strings.Join(base.GroupPath, "/")+"/", repo)))
}
|