Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
// Function to call the custom-auth API and display the token
|
| 9 |
async function callCustomAuthApi() {
|
| 10 |
try {
|
| 11 |
-
const response = await fetch('/
|
| 12 |
const data = await response.json();
|
| 13 |
document.getElementById('apiResponse').innerText = 'Token: ' + data.token;
|
| 14 |
} catch (error) {
|
|
|
|
| 8 |
// Function to call the custom-auth API and display the token
|
| 9 |
async function callCustomAuthApi() {
|
| 10 |
try {
|
| 11 |
+
const response = await fetch('/api');
|
| 12 |
const data = await response.json();
|
| 13 |
document.getElementById('apiResponse').innerText = 'Token: ' + data.token;
|
| 14 |
} catch (error) {
|