aboutsummaryrefslogtreecommitdiff
path: root/handle_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-12 22:37:51 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-12 22:37:51 +0800
commit11a8f2889e874ecebdbc49a6887918c7b043c503 (patch)
tree0ead7076fe6df7a1edf6d3a54963ae328a2f0084 /handle_index.go
parentREADME.md: Update about SSH implementation (diff)
downloadforge-11a8f2889e874ecebdbc49a6887918c7b043c503.tar.gz
forge-11a8f2889e874ecebdbc49a6887918c7b043c503.tar.zst
forge-11a8f2889e874ecebdbc49a6887918c7b043c503.zip
{ssh,global}.go, index.html: Add global data containing ssh fp
Diffstat (limited to 'handle_index.go')
-rw-r--r--handle_index.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/handle_index.go b/handle_index.go
index c631546..bf36f98 100644
--- a/handle_index.go
+++ b/handle_index.go
@@ -6,6 +6,7 @@ import (
func handle_index(w http.ResponseWriter, r *http.Request) {
data := make(map[string]any)
+ data["global"] = global_data
rows, err := database.Query(r.Context(), "SELECT name FROM groups")
if err != nil {