hamza82 commited on
Commit
bb4a529
·
verified ·
1 Parent(s): 33d444e

Update static/index.html

Browse files
Files changed (1) hide show
  1. 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('/custom-auth');
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) {