From 2b64699de28c3c652b3eecb33ea5a3dd60c9103f Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Wed, 2 Feb 2022 18:17:50 -0600 Subject: [PATCH] Rename exozyme API from new to api --- join/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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