mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 15:47:06 +08:00
Move schema.json to www/static
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -4,4 +4,5 @@ import "embed"
|
||||
|
||||
//go:embed *.html
|
||||
//go:embed *.js
|
||||
//go:embed *.json
|
||||
var Static embed.FS
|
||||
|
||||
Reference in New Issue
Block a user