feat: change the url for the lights
This commit is contained in:
parent
44059f7439
commit
b2839adcbb
@ -48,4 +48,4 @@ export type ActiveAnimations = {
|
|||||||
code: nubmer
|
code: nubmer
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Requests = new RequestsClass('http://aether:3000');
|
export const Requests = new RequestsClass('http://lights.home:3000');
|
||||||
|
@ -20,7 +20,7 @@ function createSettingsStore() {
|
|||||||
if (loadedV && !force)
|
if (loadedV && !force)
|
||||||
return;
|
return;
|
||||||
store.set(new Promise(() => { 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());
|
store.set(request.json());
|
||||||
loaded.set(true);
|
loaded.set(true);
|
||||||
},
|
},
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
async function getData() {
|
async function getData() {
|
||||||
data = new Promise(() => {});
|
data = new Promise(() => {});
|
||||||
let request = await fetch('http://aether:3000/configure');
|
let request = await fetch('http://lights.home:3000/configure');
|
||||||
|
|
||||||
configuration = await request.json();
|
configuration = await request.json();
|
||||||
data = Promise.resolve(configuration);
|
data = Promise.resolve(configuration);
|
||||||
@ -31,7 +31,7 @@
|
|||||||
delete item.id;
|
delete item.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
let request = await fetch('http://aether:3000/configure', {
|
let request = await fetch('http://lights.home:3000/configure', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
Reference in New Issue
Block a user