feat: change the url for the lights

This commit is contained in:
Andre Henriques 2024-09-05 15:11:44 +01:00
parent 44059f7439
commit b2839adcbb
3 changed files with 4 additions and 4 deletions

View File

@ -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');

View File

@ -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);
},

View File

@ -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: {