aboutsummaryrefslogtreecommitdiff
path: root/handle_group_index.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--handle_group_index.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/handle_group_index.go b/handle_group_index.go
index f194cee..bc7a7f4 100644
--- a/handle_group_index.go
+++ b/handle_group_index.go
@@ -7,9 +7,9 @@ import (
"strings"
)
-func handle_group_repos(w http.ResponseWriter, r *http.Request) {
+func handle_group_repos(w http.ResponseWriter, r *http.Request, params map[string]string) {
data := make(map[string]any)
- group_name := r.PathValue("group_name")
+ group_name := params["group_name"]
data["group_name"] = group_name
entries, err := os.ReadDir(filepath.Join(config.Git.Root, group_name))
if err != nil {