blob: 1a804b28c4a690be8ae7cc7b6b56d14f453d827d (
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 (
"net/http"
"strings"
wtypes "go.lindenii.runxiyu.org/forge/forged/internal/incoming/web/types"
)
func (h *HTTP) Index(w http.ResponseWriter, r *http.Request, v wtypes.Vars) {
base := wtypes.Base(r)
repo := v["repo"]
_ = h.r.Render(w, "repo/index.html", struct {
Group string
Repo string
}{
Group: "/" + strings.Join(base.GroupPath, "/") + "/",
Repo: repo,
})
}
|