Added frontend and working fetching.

This commit is contained in:
2024-12-14 13:26:21 +01:00
parent bab8fa6c25
commit 1c74ae9de5
11 changed files with 69 additions and 38 deletions
+4 -1
View File
@@ -2,7 +2,10 @@ export default function getProgress(){
const progress = ref(null as Progress | null);
fetch('http://localhost:5224/progress')
fetch('https://proxy.rbwr.dk/progress', {
method: 'GET',
headers: {'Content-Type': 'application/json'}
})
.then(response => response.json())
.then((data: Progress) => {
if (data && data.percentageOfIpv4Scanned) {