aboutsummaryrefslogtreecommitdiff
path: root/handle_category_index.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--handle_category_index.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/handle_category_index.go b/handle_category_index.go
index 407d0e7..953557a 100644
--- a/handle_category_index.go
+++ b/handle_category_index.go
@@ -9,9 +9,9 @@ import (
func handle_category_index(w http.ResponseWriter, r *http.Request) {
data := make(map[string]any)
- project_name := r.PathValue("project_name")
- data["category_name"] = project_name
- entries, err := os.ReadDir(filepath.Join(config.Git.Root, project_name))
+ category_name := r.PathValue("category_name")
+ data["category_name"] = category_name
+ entries, err := os.ReadDir(filepath.Join(config.Git.Root, category_name))
if err != nil {
_, _ = w.Write([]byte("Error listing repos: " + err.Error()))
return