Rename exozyme API from new to api

This commit is contained in:
Anthony Wang 2022-02-02 18:17:50 -06:00
parent 12ee102f09
commit 2b64699de2
Signed by: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -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