diff --git a/join/script.js b/join/script.js index d631868..3001369 100644 --- a/join/script.js +++ b/join/script.js @@ -1,10 +1,11 @@ -const url = 'https://exozy.me/new/' +const url = 'https://exozy.me/api/' const form = document.querySelector('form') form.addEventListener('submit', (e) => { e.preventDefault() const data = new Object() + data['type'] = 'new' for (const s of ['code', 'firstname', 'lastname', 'email', 'username', 'password']) { data[s] = document.getElementsByName(s)[0].value