Parcourir la source

update base url

Jérôme BUISINE il y a 4 ans
Parent
commit
14536042f5
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      static/js/links.js

+ 2 - 2
static/js/links.js

@@ -43,7 +43,7 @@ async function searchUserId(){
 
     let data = {'guildId': guildId, 'userId': userId}
     
-    fetch(`${BASE}/check`, {
+    fetch(`/${BASE}/check`, {
         method: 'POST',
         body: JSON.stringify(data),
         headers: {
@@ -89,7 +89,7 @@ async function generateLink(){
 
     let data = {'guildId': guildId, 'userId': userId}
     
-    fetch(`${BASE}/generate`, {
+    fetch(`/${BASE}/generate`, {
         method: 'POST',
         body: JSON.stringify(data),
         headers: {