From 1ec40f2fc33cfb4b71cbf1e6ea60580c3aa1e55d Mon Sep 17 00:00:00 2001 From: Alex X Date: Sat, 17 Jan 2026 13:57:05 +0300 Subject: [PATCH] Move schema.json to www/static --- www/config.html | 2 +- {website => www}/schema.json | 0 www/static.go | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename {website => www}/schema.json (100%) diff --git a/www/config.html b/www/config.html index fe84275c..026b5beb 100644 --- a/www/config.html +++ b/www/config.html @@ -1205,7 +1205,7 @@ (async () => { try { - const r = await fetch('https://go2rtc.org/schema.json', {cache: 'no-cache'}); + const r = await fetch('schema.json', {cache: 'no-cache'}); if (r.ok) setupYamlHints(await r.json()); } catch (e) { // ignore schema load errors diff --git a/website/schema.json b/www/schema.json similarity index 100% rename from website/schema.json rename to www/schema.json diff --git a/www/static.go b/www/static.go index 01f50906..064fec36 100644 --- a/www/static.go +++ b/www/static.go @@ -4,4 +4,5 @@ import "embed" //go:embed *.html //go:embed *.js +//go:embed *.json var Static embed.FS