Spaces:
Running
Running
dylan
commited on
Commit
·
cdc6b4b
1
Parent(s):
9e0542d
pass credentials to post
Browse files
viewer/src/routes/+page.svelte
CHANGED
|
@@ -342,6 +342,7 @@
|
|
| 342 |
method: "POST",
|
| 343 |
headers: {
|
| 344 |
"Content-Type": "application/json",
|
|
|
|
| 345 |
},
|
| 346 |
body: JSON.stringify(row),
|
| 347 |
});
|
|
@@ -365,6 +366,7 @@
|
|
| 365 |
method: "POST",
|
| 366 |
headers: {
|
| 367 |
"Content-Type": "application/json",
|
|
|
|
| 368 |
},
|
| 369 |
body: JSON.stringify({ value }),
|
| 370 |
});
|
|
@@ -389,6 +391,7 @@
|
|
| 389 |
method: "POST",
|
| 390 |
headers: {
|
| 391 |
"Content-Type": "application/json",
|
|
|
|
| 392 |
},
|
| 393 |
body: JSON.stringify(row),
|
| 394 |
});
|
|
@@ -422,6 +425,7 @@
|
|
| 422 |
method: "POST",
|
| 423 |
headers: {
|
| 424 |
"Content-Type": "application/json",
|
|
|
|
| 425 |
},
|
| 426 |
body: JSON.stringify(row),
|
| 427 |
});
|
|
@@ -455,6 +459,7 @@
|
|
| 455 |
method: "POST",
|
| 456 |
headers: {
|
| 457 |
"Content-Type": "application/json",
|
|
|
|
| 458 |
},
|
| 459 |
body: JSON.stringify(row),
|
| 460 |
});
|
|
@@ -487,6 +492,7 @@
|
|
| 487 |
method: "POST",
|
| 488 |
headers: {
|
| 489 |
"Content-Type": "application/json",
|
|
|
|
| 490 |
},
|
| 491 |
body: JSON.stringify(row),
|
| 492 |
});
|
|
@@ -519,6 +525,7 @@
|
|
| 519 |
method: "POST",
|
| 520 |
headers: {
|
| 521 |
"Content-Type": "application/json",
|
|
|
|
| 522 |
},
|
| 523 |
body: JSON.stringify(row),
|
| 524 |
});
|
|
@@ -551,6 +558,7 @@
|
|
| 551 |
method: "POST",
|
| 552 |
headers: {
|
| 553 |
"Content-Type": "application/json",
|
|
|
|
| 554 |
},
|
| 555 |
body: JSON.stringify(row),
|
| 556 |
});
|
|
@@ -583,6 +591,7 @@
|
|
| 583 |
method: "POST",
|
| 584 |
headers: {
|
| 585 |
"Content-Type": "application/json",
|
|
|
|
| 586 |
},
|
| 587 |
body: JSON.stringify(row),
|
| 588 |
});
|
|
@@ -615,6 +624,7 @@
|
|
| 615 |
method: "POST",
|
| 616 |
headers: {
|
| 617 |
"Content-Type": "application/json",
|
|
|
|
| 618 |
},
|
| 619 |
body: JSON.stringify(row),
|
| 620 |
});
|
|
@@ -650,7 +660,7 @@
|
|
| 650 |
const response = await fetch(baseURL + "/data", {
|
| 651 |
method: "GET",
|
| 652 |
headers: {
|
| 653 |
-
Authorization: "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 654 |
},
|
| 655 |
});
|
| 656 |
rows = await response.json();
|
|
|
|
| 342 |
method: "POST",
|
| 343 |
headers: {
|
| 344 |
"Content-Type": "application/json",
|
| 345 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 346 |
},
|
| 347 |
body: JSON.stringify(row),
|
| 348 |
});
|
|
|
|
| 366 |
method: "POST",
|
| 367 |
headers: {
|
| 368 |
"Content-Type": "application/json",
|
| 369 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 370 |
},
|
| 371 |
body: JSON.stringify({ value }),
|
| 372 |
});
|
|
|
|
| 391 |
method: "POST",
|
| 392 |
headers: {
|
| 393 |
"Content-Type": "application/json",
|
| 394 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 395 |
},
|
| 396 |
body: JSON.stringify(row),
|
| 397 |
});
|
|
|
|
| 425 |
method: "POST",
|
| 426 |
headers: {
|
| 427 |
"Content-Type": "application/json",
|
| 428 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 429 |
},
|
| 430 |
body: JSON.stringify(row),
|
| 431 |
});
|
|
|
|
| 459 |
method: "POST",
|
| 460 |
headers: {
|
| 461 |
"Content-Type": "application/json",
|
| 462 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 463 |
},
|
| 464 |
body: JSON.stringify(row),
|
| 465 |
});
|
|
|
|
| 492 |
method: "POST",
|
| 493 |
headers: {
|
| 494 |
"Content-Type": "application/json",
|
| 495 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 496 |
},
|
| 497 |
body: JSON.stringify(row),
|
| 498 |
});
|
|
|
|
| 525 |
method: "POST",
|
| 526 |
headers: {
|
| 527 |
"Content-Type": "application/json",
|
| 528 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 529 |
},
|
| 530 |
body: JSON.stringify(row),
|
| 531 |
});
|
|
|
|
| 558 |
method: "POST",
|
| 559 |
headers: {
|
| 560 |
"Content-Type": "application/json",
|
| 561 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 562 |
},
|
| 563 |
body: JSON.stringify(row),
|
| 564 |
});
|
|
|
|
| 591 |
method: "POST",
|
| 592 |
headers: {
|
| 593 |
"Content-Type": "application/json",
|
| 594 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 595 |
},
|
| 596 |
body: JSON.stringify(row),
|
| 597 |
});
|
|
|
|
| 624 |
method: "POST",
|
| 625 |
headers: {
|
| 626 |
"Content-Type": "application/json",
|
| 627 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 628 |
},
|
| 629 |
body: JSON.stringify(row),
|
| 630 |
});
|
|
|
|
| 660 |
const response = await fetch(baseURL + "/data", {
|
| 661 |
method: "GET",
|
| 662 |
headers: {
|
| 663 |
+
"Authorization": "Bearer " + import.meta.env.VITE_HF_TOKEN,
|
| 664 |
},
|
| 665 |
});
|
| 666 |
rows = await response.json();
|