From a324d24b725c5b80e95b537d5bae4d623d9ce8a5 Mon Sep 17 00:00:00 2001 From: jbergner Date: Sun, 7 Sep 2025 12:21:37 +0200 Subject: [PATCH] bugfix --- clipboard.json | 51 +++++--------------------------------------------- main.go | 4 ++-- 2 files changed, 7 insertions(+), 48 deletions(-) diff --git a/clipboard.json b/clipboard.json index e168de8..cf04c0e 100644 --- a/clipboard.json +++ b/clipboard.json @@ -3,54 +3,13 @@ "rooms": { "default": [ { - "id": "20250906T094234.159189600Z-51dab5cf1cc000fb", + "id": "20250906T230610.920156600Z-9cb85e5bffcf0eef", "room": "default", "type": "text", - "content": "^9rhME!\u003e-Q#6k969og^d", - "created_at": "2025-09-06T09:42:34.1591896Z" - }, - { - "id": "20250906T094239.420737500Z-3884c4d0cb8a9ac4", - "room": "default", - "type": "text", - "content": "f,u6g-r8E2:gNTu/w)b)", - "created_at": "2025-09-06T09:42:39.4207375Z" - }, - { - "id": "20250906T094240.237113600Z-0a9fe15a381b458f", - "room": "default", - "type": "text", - "content": "nyG\u003eC2eq[M4RP2;+u9Tz", - "created_at": "2025-09-06T09:42:40.2371136Z" - }, - { - "id": "20250906T094241.057489000Z-544852c456ff133e", - "room": "default", - "type": "text", - "content": ".kC49}YqE7P~P5i7dadk", - "created_at": "2025-09-06T09:42:41.057489Z" - }, - { - "id": "20250906T142832.444200200Z-5cbf503227067e52", - "room": "default", - "type": "text", - "content": "n?x2Pr!d929FK9!7Ls5L", - "created_at": "2025-09-06T14:28:32.4442002Z" - }, - { - "id": "20250906T142832.444720600Z-ac6a369b19a2ca3a", - "room": "default", - "type": "text", - "content": "UoT$YvL%eAKh\u0026SG9VS\u0026$", - "created_at": "2025-09-06T14:28:32.4447206Z" - }, - { - "id": "20250906T154926.777767300Z-6907b53a7b2cc54d", - "room": "default", - "type": "text", - "content": ",2V=;eEM.i4wG^C?$+6?", - "created_at": "2025-09-06T15:49:26.7777673Z" + "content": "2ao+A?7=Tbp,t*7$3Yo9", + "created_at": "2025-09-06T23:06:10.9201566Z" } - ] + ], + "privat": [] } } diff --git a/main.go b/main.go index 0f58139..f617a1f 100644 --- a/main.go +++ b/main.go @@ -413,7 +413,7 @@ func makeID() string { // ---- Router ---- -//go:embed web/** +//go:embed \/web/** var embedded embed.FS func (s *Server) routes() http.Handler { @@ -480,7 +480,7 @@ func (s *Server) routes() http.Handler { mux.HandleFunc("/status", s.handleStatus) // Static UI - sub, _ := fs.Sub(embedded, "/web") + sub, _ := fs.Sub(embedded, "web") mux.Handle("/", http.FileServer(http.FS(sub))) return mux