From b2839adcbbc68001d11a4c134e1590b9f1e70209 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Thu, 5 Sep 2024 15:11:44 +0100 Subject: [PATCH] feat: change the url for the lights --- src/lib/Requests.ts | 2 +- src/lib/store.ts | 2 +- src/routes/configuration/+page.svelte | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/Requests.ts b/src/lib/Requests.ts index 668cc2c..7ad9f41 100644 --- a/src/lib/Requests.ts +++ b/src/lib/Requests.ts @@ -48,4 +48,4 @@ export type ActiveAnimations = { code: nubmer } -export const Requests = new RequestsClass('http://aether:3000'); +export const Requests = new RequestsClass('http://lights.home:3000'); diff --git a/src/lib/store.ts b/src/lib/store.ts index e1ac946..14ac14a 100644 --- a/src/lib/store.ts +++ b/src/lib/store.ts @@ -20,7 +20,7 @@ function createSettingsStore() { if (loadedV && !force) return; store.set(new Promise(() => { return; })); - const request = await fetch('http://aether:3000/configure'); + const request = await fetch('http://lights.home:3000/configure'); store.set(request.json()); loaded.set(true); }, diff --git a/src/routes/configuration/+page.svelte b/src/routes/configuration/+page.svelte index 68a9183..b5e901c 100644 --- a/src/routes/configuration/+page.svelte +++ b/src/routes/configuration/+page.svelte @@ -18,7 +18,7 @@ async function getData() { data = new Promise(() => {}); - let request = await fetch('http://aether:3000/configure'); + let request = await fetch('http://lights.home:3000/configure'); configuration = await request.json(); data = Promise.resolve(configuration); @@ -31,7 +31,7 @@ delete item.id; } - let request = await fetch('http://aether:3000/configure', { + let request = await fetch('http://lights.home:3000/configure', { method: 'POST', mode: 'cors', headers: {