Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lounsen authored Apr 4, 2024
1 parent 1e4f361 commit f5e84a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>User Login and Points Query</h1>
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;

fetch('http://9obf1nbnz1flshsh3.neiwangyun.net:56673/login', {
fetch('http://ewyagq4wdfvwshsh3.neiwangyun.net/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand All @@ -47,7 +47,7 @@ <h1>User Login and Points Query</h1>

document.getElementById('queryBtn').addEventListener('click', function() {
//console.log(document.cookie);
fetch('http://9obf1nbnz1flshsh3.neiwangyun.net/points')
fetch('http://ewyagq4wdfvwshsh3.neiwangyun.net/points')
.then(response => response.json())
.then(data => {
document.getElementById('points').innerText = `Points: ${data.points}`;
Expand Down

0 comments on commit f5e84a0

Please sign in to comment.