Modify top-users.js
This commit is contained in:
parent
37851c5dc5
commit
c413dbb577
|
@ -1,8 +1,4 @@
|
||||||
fetch("/top_users?number=5", {
|
fetch("/top_users?number=5")
|
||||||
// method: 'POST',
|
|
||||||
headers: {'Content-Type': 'application/json'}
|
|
||||||
// body: JSON.stringify({number:5})
|
|
||||||
})
|
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error: ${response.status}`);
|
throw new Error(`HTTP error: ${response.status}`);
|
||||||
|
|
Loading…
Reference in New Issue