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
|
||||
}
|
||||
|
||||
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)
|
||||
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);
|
||||
},
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user