From f144006daea838f3095880444d48e2941447e4e7 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 13 Dec 2023 09:33:47 +0100 Subject: Add some API methods --- main.go | 219 ++++++++++++++++++++++++++++++++++++++++++++++++++---- public/gallery.js | 32 ++++++++ test.sh | 14 ++++ 3 files changed, 250 insertions(+), 15 deletions(-) diff --git a/main.go b/main.go index ba7d6f9..d00dcec 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "crypto/sha1" "database/sql" "encoding/hex" + "encoding/json" "errors" "fmt" "html/template" @@ -147,6 +148,8 @@ var page = template.Must(template.New("/").Parse(` + +

{{ .Name }}