Move schema.json to www/static

This commit is contained in:
Alex X
2026-01-17 13:57:05 +03:00
parent 790fdfbf7a
commit 1ec40f2fc3
3 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -4,4 +4,5 @@ import "embed"
//go:embed *.html
//go:embed *.js
//go:embed *.json
var Static embed.FS