diff --git a/Webserver/src/routes/+page.svelte b/Webserver/src/routes/+page.svelte index 22a7f4a..29cd3a1 100644 --- a/Webserver/src/routes/+page.svelte +++ b/Webserver/src/routes/+page.svelte @@ -13,6 +13,7 @@ clearMatrix(); const form = event.target as HTMLFormElement; + // TODO: Calling API via server-side const response = await fetch(`http://localhost:8080/${form.dataset.endpoint}`, { mode: 'cors' }); @@ -42,6 +43,7 @@ // break; } + // TODO: Calling API via server-side const response = await fetch(`http://localhost:8080/${form.dataset.endpoint}`, { method: form.method, mode: 'cors', @@ -111,6 +113,7 @@ fdata.append('x', x.toString()); fdata.append('y', y.toString()); + // TODO: Calling API via server-side const response = await fetch('http://localhost:8080/pixel', { method: 'POST', mode: 'cors', @@ -421,7 +424,7 @@